您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blocks ads from Thingiverse
// ==UserScript== // @name Thingiverse AdBlock // @description Blocks ads from Thingiverse // @description:de Blendet Werbung auf Thingiverse aus // @author Tobse // @license MIT // @name:de Thingiverse AdBlock // @name:en Thingiverse AdBlock // @match https://www.thingiverse.com/thing* // @run-at document-idle // @version 0.1.2.20221001100000 // @namespace https://github.com/TobseF // ==/UserScript== function blockAds(){ let found = ''; let i = 0; let query = "//div[contains(@class,\"AdCard\")]" do { found = document.evaluate(query, document, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue if(found != null){ found.remove() } } while (found != null && i < 10); } (new MutationObserver(waitForGallery)).observe(document, {childList: true, subtree: true}); function waitForGallery(changes, observer) { // Wait until image gallery is visible if (document.querySelector('[class^="AdCard"]')) { observer.disconnect(); blockAds(); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址