IT之家了解到

去掉文章内容中的废话

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         IT之家了解到
// @version      2025.11.25
// @namespace    https://greatest.deepsurf.us/zh-CN/users/452492-0x400
// @description  去掉文章内容中的废话
// @author       0x400
// @match        https://www.ithome.com/*
// @icon         https://www.google.com/s2/favicons?domain=ithome.com
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';
    var regex = /(<div class="tougao-user"[^>]*>[\s\S]*?<\/div>|<p class="ad-tips"[^>]*>[\s\S]*?<\/p>|(<a[^>]*>)?IT\s?之家(<\/>a)?[^,。:]*[,。:])/g;
    document.querySelector('.post_content').innerHTML = document.querySelector('.post_content').innerHTML.replaceAll(regex,'');
})();