您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript== // @name 谷歌浏览器广告 // @namespace http://tampermonkey.net/ // @version 0.1 // @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").attr("style","display:none") } if(tampermonkey.test(currentURL)){ $(".adventing").attr("style","display:none") } if(cnblogs.test(currentURL)){ $("#div-gpt-ad-1539008685004-0").attr("style","display:none");//文章底部广告 for(var i = 1 ; i<5;i++){ $("#cnblogs_b"+i).attr("style","display:none");//首页右侧广告 } } console.log("谷歌浏览器广告") }, 3000); })();