您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script makes the pages of golem.de usable again for people with adblockers installed.
// ==UserScript== // @name Anti-Adblock-Harassment-for-golem.de // @namespace anti-adblock-harassment-for-golem-de // @description This script makes the pages of golem.de usable again for people with adblockers installed. // @include http://www.golem.de/* // @include http://forum.golem.de/* // @include https://www.golem.de/* // @include https://forum.golem.de/* // @version 0.1 // @grant none // ==/UserScript== var className = "formatted"; var identifyingText = "ADBLOCKER ERKANNT" //adblocker warning is not present on load; injected at a later point in time theInterval = window.setInterval(main, 100); function main() { var rootWrapper = document.getElementsByTagName("article"); if (rootWrapper.length != 0) { elem = rootWrapper[0]; style = window.getComputedStyle(elem); filter = style.getPropertyValue("filter"); // If the article has been blurred if (filter.substring(0, 4).toLowerCase() == "blur") { elem.style = "background-color: #fff"; elem.parentNode.removeChild(elem.nextSibling); //harassment is removed, so stop scanning clearInterval(theInterval); } } }