您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes ads from profile and homepage of ludomedia.it
// ==UserScript== // @name Ludomedia no ad // @namespace http://tampermonkey.net/ // @version 2025-03-04 // @description Removes ads from profile and homepage of ludomedia.it // @author You // @include *://*.ludomedia.it* // @icon https://www.google.com/s2/favicons?sz=64&domain=ludomedia.it // @grant none // @license GPL-3.0-or-later // ==/UserScript== (function() { 'use strict'; function removeElementsByClass(className) { let elements = document.querySelectorAll("." + className); // Select elements by class elements.forEach(el => el.remove()); // Remove each element } // Example: Remove elements with class "ads-banner" removeElementsByClass("profilopbiLink"); removeElementsByClass("boxpbiLink"); // To handle dynamically loaded elements, use MutationObserver: const observer = new MutationObserver(() => removeElementsByClass("profilopbiLinkr")); observer.observe(document.body, { childList: true, subtree: true }); const observer2 = new MutationObserver(() => removeElementsByClass("boxpbiLink")); observer2.observe(document.body, { childList: true, subtree: true }); })();