您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simple AdBlocker
// ==UserScript== // @name Injectable AdBlocker // @namespace AD BLOCK_:) // @version 1-beta // @description Simple AdBlocker // @author CyberMafia // @match *://*/* // @grant dev // ==/UserScript== (function removeAdvertisementAndBlockingElements () { $('.inRek').remove(); $('.mgbox').remove(); Array.from(document.getElementsByTagName("img")).forEach(function (e) { if (!e.src.includes(window.location.host)) { e.remove() } }); Array.from(document.getElementsByTagName("div")).forEach(function (e) { var currentZIndex = parseInt(document.defaultView.getComputedStyle(e, null).zIndex); if (currentZIndex > 999) { console.log(parseInt(currentZIndex)); e.remove() } }); })();