您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
en
// ==UserScript== // @license MIT // @name Block alerts on itdog.cn and delete all advertisements // @namespace http://tampermonkey.net/ // @version 0.1 // @description en // @author JJ // @match https://www.itdog.cn/* // @match https://itdog.cn/* // @grant none // ==/UserScript== (function() { 'use strict'; window.alert = function() {}; let ggLinkDivs = document.querySelectorAll('div.col-12.gg_link'); ggLinkDivs.forEach(function(div) { div.remove(); }); let gifImages = document.querySelectorAll('img[src="/upload/images/20231023230235_692.gif"]'); gifImages.forEach(function(img) { img.remove(); }); let nofollowLinks = document.querySelectorAll('a[rel="noopener nofollow"]'); nofollowLinks.forEach(function(link) { link.remove(); }); let ggLinkDivs2 = document.querySelectorAll('div.gg_link'); ggLinkDivs2.forEach(function(div) { div.remove(); }); let paddingDivs = document.querySelectorAll('div[style="padding: 18px 0 0 18px;"]'); paddingDivs.forEach(function(div) { div.remove(); }); let cardHeaderDivs = document.querySelectorAll('div.card-header.p-3'); cardHeaderDivs.forEach(function(div) { div.remove(); }); })();