您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
手机网页版IT之家去除广告,文章页去除分享、评分相关文章等。
当前为
// ==UserScript== // @name 手机网页版IT之家去除广告和干扰 // @namespace http://greasyfork.icu/zh-CN/users/442617-punkjet // @version 0.2 // @description 手机网页版IT之家去除广告,文章页去除分享、评分相关文章等。 // @author PunkJet // @match *://m.ithome.com/* // @grant none // ==/UserScript== (function() { 'use strict'; $(".open-app-banner").remove(); $(".open-app").remove(); removeIthomeAds(); window.addEventListener("scroll", function() { removeIthomeAds(); removeIthomeArticleAds(); }) })(); function removeIthomeArticleAds() { $(".down-app-box").remove(); $("div[class='relevant-news']").remove(); $("div[class='hot-app']").remove(); $("div[class='ggp-promotion']").remove(); $("div[class='grade']").remove(); $("div[id='bd-share-box']").remove(); $("div[class='lapin']").remove(); $("div[class='news-class']").remove(); } function removeIthomeAds() { var spans1 = $("span[class='tip-suggest']"); spans1.each(function() { $(this).closest("div.placeholder").remove(); }); var spans2 = $("span[class='tip tip-gray']"); spans2.each(function() { $(this).closest("div.placeholder").remove(); }); }