Greasy Fork is available in English.

谷歌浏览器广告

try to take over the world!

Verze ze dne 15. 06. 2019. Zobrazit nejnovější verzi.

// ==UserScript==
// @name         谷歌浏览器广告
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       You
// @match        *://my.oschina.net/*
// @match        *://www.cnblogs.com/*
// @match        *://www.tampermonkey.net/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var cnblogs = /www.cnblogs.com/
    var oschina = /my.oschina.net/
    var tampermonkey = /www.tampermonkey.net/


    var currentURL = window.location.href;


    setTimeout(function () {
        if(oschina.test(currentURL)){

            $(".adsbygoogle").remove();

        }
        if(tampermonkey.test(currentURL)){

            $(".adventing").remove();

        }
        if(cnblogs.test(currentURL)){

            $("#div-gpt-ad-1539008685004-0").remove();//文章底部广告
            for(var i = 1 ; i<5;i++){
                $("#cnblogs_b"+i).remove();//首页右侧广告
            }
        }
        console.log("谷歌浏览器广告")
    }, 3000);
})();