您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动屏蔽谷歌广告的插件,告别烦恼!!!
当前为
// ==UserScript== // @name 屏蔽谷歌广告 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 自动屏蔽谷歌广告的插件,告别烦恼!!! // @author Boen // @match *://*/* // @icon https://www.google.com/s2/favicons?sz=64&domain=231395.com // @grant none // @license MIT // ==/UserScript== (function () { "use strict"; const adSelectArr = ["ins", `[id*="aswift"]`]; // ad's selectors // remove ad function removeADs(adSelectArr) { for (const el of adSelectArr) { const adIns = document.querySelectorAll(el); if (adIns) { for (let el of adIns) { try { el && el.remove(); } catch (error) {} } } } } setTimeout(() => { removeADs(adSelectArr); }, 200); })();