ithome cps filter

Remove CPS Ads in ithome.com's news list.

目前为 2018-03-28 提交的版本。查看 最新版本

// ==UserScript==
// @name                ithome cps filter
// @name:zh-CN          IT之家资讯列表广告屏蔽
// @description         Remove CPS Ads in ithome.com's news list.
// @description:zh-CN   移除IT之家(ithome.com)资讯列表内投放的购物广告。
// @version             0.9
// @author              YvesX https://www.yvesx.com
// @namespace           https://github.com/Yves-X
// @contributionURL     https://www.yvesx.com/go/donate/ 
// @match               *://www.ithome.com/*
// @grant               none
// ==/UserScript==
(function () {
    'use strict';
        var newsSpan = $('.title').children('a');
        newsSpan.each(function (i) {
            var newsUrl = $(this).attr("href");
            if (newsUrl.indexOf('lapin') >= 0) {
                $(this).parent().parent().html(' ');
            }
        });
})();
(function () {
    'use strict';
        var newsSpan = $('.title').children('a');
        newsSpan.each(function (i) {
            var newsUrl = $(this).attr("href");
            if (newsUrl.indexOf('lapin') >= 0) {
                $(this).parent().parent().html(' ');
            }
        });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址