您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
移除IT之家(ithome.com)资讯列表内投放的购物广告;Remove CPS Ads in ithome.com's news list.
当前为
// ==UserScript== // @name IT之家资讯列表广告屏蔽 ithome CPS Filter // @name:zh-CN IT之家资讯列表广告屏蔽 // @description 移除IT之家(ithome.com)资讯列表内投放的购物广告;Remove CPS Ads in ithome.com's news list. // @description:zh-CN 移除IT之家(ithome.com)资讯列表内投放的购物广告。 // @version 1.1 // @author YvesX https://www.yvesx.com // @namespace https://github.com/Yves-X // @contributionURL https://www.yvesx.com/go/donate/ // @supportURL https://github.com/Yves-X/ithome-CPS-Filter/issues // @match https://*.ithome.com/* // @grant none // ==/UserScript== (function () { 'use strict'; var url = window.location.href; if (url == 'https://www.ithome.com/') { forHomepage(); } else if (url.indexOf('www.ithome.com/list/') >= 0) { forList(); } else if (url.indexOf('www.ithome.com/blog/') >= 0) { forBlog(); } else if (url.indexOf('wap.ithome.com') >= 0) { forWap(); } function forHomepage() { var newsSpan = $('.title a'); newsSpan.each(function (i) { var newsUrl = $(this).attr("href"); if (newsUrl.indexOf('lapin') >= 0) { $(this).parent().parent().html(' '); } }); } function forList() { var newsSpan = $('.ulcl a'); newsSpan.each(function (i) { var newsUrl = $(this).attr("href"); if (newsUrl.indexOf('lapin') >= 0) { $(this).parent().remove(); } }); } function forBlog() { forList(); } function forWap() { var newsSpan = $('.jsonplist a'); newsSpan.each(function (i) { var newsUrl = $(this).attr("href"); if (newsUrl.indexOf('lapin') >= 0) { $(this).parent().remove(); } }); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址