Warning: fopen(/www/sites/update.greasyfork.icu/index/store/forever/808d217b3c1ac638fcca38d81d3ae43a.js): failed to open stream: No space left on device in /www/sites/update.greasyfork.icu/index/scriptControl.php on line 65
// ==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
// @downloadURL none
// ==/UserScript==
/*- The @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
*/
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);