[bug] http://protopage.com/ktreglia#Social_Media_in_Education

Blaz

Moderator & Translator
Staff member
Moderator
If I remember correct the site is broken without that rule.
 

ag_bug_finder

Beta Tester
I hate those ads...

I tried AdMuncher...and its able to deal with those ads...
For a program that hasn't been updated in so long, and that still blocks those ads, and for AdGuard with its latest technologies to fail....its disappointing really.
 

Alex302

Filters Developer
Staff member
Administrator
I hate those ads...

I tried AdMuncher...and its able to deal with those ads...
For a program that hasn't been updated in so long, and that still blocks those ads, and for AdGuard with its latest technologies to fail....its disappointing really.
This issue will be fixed soon.
 

ag_bug_finder

Beta Tester
Just further to this regarding: https://github.com/AdguardTeam/AdguardFilters/issues/2248
@Alex302 wrote the following code to fix the issue:
Code:
protopage.com#%#AG_onLoad(function() { setTimeout(function() { window.AG_removeElementBySelector('div[style$="width: 112px; height: 46px;"]'); window.AG_removeElementBySelector('div[style$="position: absolute; overflow: visible; left: 1474px; top: 48px; z-index: 90073; display: block;"]'); window.AG_removeElementBySelector('div[style$="width: 770px; height: 100px;"]'); window.AG_removeElementBySelector('div[style$="position: absolute; overflow: visible; left: 20px; top: 48px; z-index: 90073; display: block;"]'); },500); });
However, the issue is still not resolved to satisfaction.

Here are some screenshots of what it looks like now, and how it should look like.

Top of page with current filter: http://q33i.imgup.net/Screenshote4e3.png
Top of page ideal: http://u37i.imgup.net/Screenshotf27a.png

Bottom of page with current filter: http://s62i.imgup.net/Screenshot3447.png
Bottom of page ideal: http://g11i.imgup.net/Screenshotd2f1.png

What we need is some JS to click on the X to close the ads and make the page look like the desired result.

@sh2662, you seem very good at JS, perhaps you could help in this case?
 

SlowMemory

Beta Tester
Just for sure, I am an utter novice at javascript. As devs said it will be fixed once they implement a technology called shadow DOM, which makes little sense to me, waiting for it seems to be the most natural solution...
Also there is another solution in the github link and it removes blank areas as desired!
 
Last edited:

Alex302

Filters Developer
Staff member
Administrator
Just further to this regarding: https://github.com/AdguardTeam/AdguardFilters/issues/2248
@Alex302 wrote the following code to fix the issue:
Code:
protopage.com#%#AG_onLoad(function() { setTimeout(function() { window.AG_removeElementBySelector('div[style$="width: 112px; height: 46px;"]'); window.AG_remo
protopage.com#%#window.addEventListener("load",function(){var a=document.querySelector('div[style*="width: 19px; height: 19px"]');if(a){var b=document.createEvent("MouseEvents");b.initEvent("mouseup",!0,!0);a.dispatchEvent(b)}});
veElementBySelector('div[style$="position: absolute; overflow: visible; left: 1474px; top: 48px; z-index: 90073; display: block;"]'); window.AG_removeElementBySelector('div[style$="width: 770px; height: 100px;"]'); window.AG_removeElementBySelector('div[style$="position: absolute; overflow: visible; left: 20px; top: 48px; z-index: 90073; display: block;"]'); },500); });
However, the issue is still not resolved to satisfaction.

Here are some screenshots of what it looks like now, and how it should look like.

Top of page with current filter: http://q33i.imgup.net/Screenshote4e3.png
Top of page ideal: http://u37i.imgup.net/Screenshotf27a.png

Bottom of page with current filter: http://s62i.imgup.net/Screenshot3447.png
Bottom of page ideal: http://g11i.imgup.net/Screenshotd2f1.png

What we need is some JS to click on the X to close the ads and make the page look like the desired result.

@sh2662, you seem very good at JS, perhaps you could help in this case?
You can try this rule
Code:
protopage.com#%#window.addEventListener("load",function(){var a=document.querySelector('div[style*="width: 19px; height: 19px"]');if(a){var b=document.createEvent("MouseEvents");b.initEvent("mouseup",!0,!0);a.dispatchEvent(b)}});
But it is only for user filter.
 

ag_bug_finder

Beta Tester
Now that v6.1 is out, will this issue be solved properly so that we don't need this workaround rule?

That rule above doesn't always seem to work.
Its very temperamental and it doesn't work more than it works.

It seems you have to keep force refreshing the page to get it to work.

If the same page is loaded on another tab, or you start the browser on that page without force refresh, it mostly doesn't work.
 

Alex302

Filters Developer
Staff member
Administrator
This page is still broken with new beta and without element hiding exclusion.
 
Top