您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
The script attemps to remove the "Tworzenie treści to nasza pasja" popups on wp.pl websites
当前为
// ==UserScript== // @name Very rough wp.pl anti adblock killer // @author JGondek // @version 0.1 // @description The script attemps to remove the "Tworzenie treści to nasza pasja" popups on wp.pl websites // @include *.wp.pl/* // @include https://wp.pl // @include https://www.wp.pl // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js // @grant GM_addStyle // @namespace https://greasyfork.org/users/736392 // ==/UserScript== /*- The @grant directive is needed to work around a design change introduced in GM 1.0. It restores the sandbox. */ function triggerMostButtons (jNode) { triggerMouseEvent (jNode[0], "mouseover"); triggerMouseEvent (jNode[0], "mousedown"); triggerMouseEvent (jNode[0], "mouseup"); triggerMouseEvent (jNode[0], "click"); } function triggerMouseEvent (node, eventType) { var clickEvent = document.createEvent('MouseEvents'); clickEvent.initEvent (eventType, true, true); node.dispatchEvent (clickEvent); } let functionCalled = 0; console.log("MY wp.pl anti adblock killer: started observing..."); let inter = setInterval(function() { if(functionCalled === 10) { clearInterval(inter); console.log("MY wp.pl anti adblock killer: stopped observing"); return; } console.log("MY wp.pl anti adblock killer: checking for element..."); let element = $('body > div') .filter(function() { return this.id.match(/.{10}/); }); if(element.length !== 0 && element.length < 3) { console.log("MY wp.pl anti adblock killer: element found, removing..."); element.remove(); } functionCalled++; }, 500);