您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Automatically removes specific ad container divs by ID on GameBanana
// ==UserScript== // @name Remove Specific Ad Containers on GameBanana // @namespace http://tampermonkey.net/ // @version 1.1 // @description Automatically removes specific ad container divs by ID on GameBanana // @match https://gamebanana.com/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function removeAdContainers() { const adContainer1 = document.getElementById("google_ads_iframe_/154013155,21667764984/1024309/72721/1024309-72721-bottom_rail_0__container__"); const adContainer2 = document.getElementById("pw-oop-bottom_rail"); if (adContainer1) { adContainer1.remove(); console.log("First ad container removed."); } if (adContainer2) { adContainer2.remove(); console.log("Second ad container removed."); } } // Run the function initially and on page load completion removeAdContainers(); window.addEventListener("load", removeAdContainers); document.addEventListener("DOMNodeInserted", removeAdContainers); })();