[Resolved] dobreprogramy.pl

Adam

Filters Developer
Staff member
Moderator
This rule should block some of these ads:
Code:
dobreprogramy.pl#%#(function() { var _setTimeout = window.setTimeout; window.setTimeout = function(a, b) { if (/unBlocker/.test(a.toString())) {return 0;} return _setTimeout(a, b);}.bind(window);})();
but I do not know if it is properly made and does not break something, and it does not block background ad (it is still clickable) here - https://www.dobreprogramy.pl/W-co-zagraja-mistrzowie-na-IEM-Kilka-slow-o-grach-eSportowych,News,79113.html

EDIT
I think this rule should blocks clickable ads in background:
Code:
dobreprogramy.pl#%#AG_onLoad(function() { window.Dp.screening = function() {}; });
 
Last edited:

seanl

Well-Known Member
Added to English filter:
Code:
dobreprogramy.pl#%#(function(){function a(){}var b,c={get:function(){return a},set:a};Object.defineProperty(window,"Dp",{get:function(){return b},set:function(a){Object.defineProperties(a,{unblocker:c,screening:c});b=a}})})();
dobreprogramy.pl#%#(function(b){function a(){"advertisement"!=arguments[0]&&b.apply(window,arguments)}Object.defineProperties(window,{hasSentinel:{get:function(){return function(){return!1}},set:function(){}},addEventListener:{get:function(){return a},set:function(a){b=a}}})})(window.addEventListener);
dobreprogramy.pl#$#body { background-image:none!important; }
Please, check the result.
 

Adam

Filters Developer
Staff member
Moderator
@seanl thank you, these rules block background ads, but I still have ads leftovers.
upload_2017-2-25_12-24-32.png

EDIT

If I change "unblocker:c" to "unBlocker:c" it works.

By the way, can you change this rule:
Code:
dobreprogramy.pl#$#body { background-image:none!important; }
for example to this:
Code:
dobreprogramy.pl#$#body#top { background-image:none!important; }
because here - https://www.dobreprogramy.pl/Blog.html it looks bad.
upload_2017-2-25_12-46-0.png
 
Last edited:

seanl

Well-Known Member
Removed from English filter:
Code:
dobreprogramy.pl#%#(function(b,a){Object.defineProperty(window,"Dp",{get:function(){return a},set:function(c){Object.defineProperties(c,{unBlocker:b,screening:b});a=c}})})({get:function(){return function(){}},set:function(){}});
Added to English filter:
Code:
dobreprogramy.pl#%#(function(b){Node.prototype.appendChild=function(a){return this.tagName&&"style"!=this.tagName.toLowerCase()||!a.textContent||!/\[id\$="_divAdTop"[\s\S]*?block\s*?!important/.test(a.textContent)?b.call(this,a):null}})(Node.prototype.appendChild);
dobreprogramy.pl#%#(function(b,a){Object.defineProperty(window,"Dp",{get:function(){return a},set:function(c){Object.defineProperty(c,'screening',b);a=c}})})({get:function(){return function(){}},set:function(){}});
Please, check the result.
 

caleb59

Member
True, I think that dobreprogramy.pl are using some sort of ads script to random change their ads from time to time...
 
Last edited:

seanl

Well-Known Member
Ads are fixed, what they are doing is dynamically injecting a stylesheet after our stylesheet to override our element hiding rules. It does not unblock ads, it unblocks only empty spaces.
I think they are monitoring our filters :)

Removed from English filter:
Code:
dobreprogramy.pl#%#(function(b){Node.prototype.appendChild=function(a){return this.tagName&&"style"!=this.tagName.toLowerCase()||!a.textContent||!/\[id\$="_divAdTop"[\s\S]*?block\s*?!important/.test(a.textContent)?b.call(this,a):null}})(Node.prototype.appendChild);
dobreprogramy.pl#%#(function(b,a){Object.defineProperty(window,"Dp",{get:function(){return a},set:function(c){Object.defineProperty(c,'screening',b);a=c}})})({get:function(){return function(){}},set:function(){}});
Added to English filter:
Code:
dobreprogramy.pl##div[style^="color:"][style*="text-align:center;font-size:"][-ext-contains=""]
dobreprogramy.pl###slide-menu > * div[id^="c"][style*="height:"][style*="width:"][-ext-has="+*"]:not([id^="cb"]):not([id^="co"])
dobreprogramy.pl##div[style*="rgb(169, 169, 169);"][style*="font-size: 11px;"][-ext-contains=""]
dobreprogramy.pl#%#(function(a){EventTarget.prototype.addEventListener=function(){"slide-menu"==this.id&&-1!==["mouseout","click","mouseover"].indexOf(arguments[0])||a.apply(this,arguments)}})(EventTarget.prototype.addEventListener);
Please, check the result. The third rule is for Internet Explorer.
Edit: changed [id="co"] to [id^="co"].
 
Last edited:

seanl

Well-Known Member
Added to English filter:
Code:
dobreprogramy.pl##.gamescarousel-wrapper[-ext-has="+*"]
Please, check the result.
 

seanl

Well-Known Member
Added to English filter:
Code:
dobreprogramy.pl##div[id$="_divAdTop"][-ext-has="*"]
Please, check the result.
 
Top