您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除动漫花园上的广告
当前为
// ==UserScript== // @name Remove dmhy AD // @name:zh-CN 动漫花园广告去除插件 // @version 1.0 // @description Remove dmhy.org Annoy AD // @description:zh-CN 去除动漫花园上的广告 // @author terry // @require https://code.jquery.com/jquery-3.6.0.min.js // @match https://*.dmhy.org/* // @icon https://share.dmhy.org/images/sitelogo.gif // @license MIT // @run-at document-body // @namespace https://greasyfork.org/users/859967 // ==/UserScript== const filters = [ '[class*="kiwi"]', '[href*="taobao"]:not([href^="/"])', 'a:not([href^="/"]):not([href^="https://share.dmhy.org/"])' ]; // Use ADBlock way to block some annoy element (function removeFilters() { var $hiddenStyle = $('<style type="text/css"></style>'); $($('head')[0]).append($hiddenStyle); $hiddenStyle.append(filters + "{display: none !important; visibility: hidden !important;}"); })(); // removeBackgroundAd document.body.removeAttribute("data-href"); document.body.removeAttribute("style"); // set background to bar Color $(document.body).css("background-color", $(".navbar").css("background-color")); (function removeTopAds() { var topDiv = document.getElementsByClassName("logoCon")[0]; var adCount = topDiv.children.length - 1; while (adCount > 0) { topDiv.removeChild(topDiv.lastElementChild); adCount--; } })();