So, when I have Ad block enabled, a redirection is done to adblock.php. I would like to block this JS script in order to remove all ads, very excessive.
I tried a lot of scripts but nothing works correctly. My first solution was to remove all "onerror" attribute before start script but I have not found solution. My second solution was to remove or create another function ErrorRedir() but again, I not found solution.
Do you have any idea about 1 possible solution please?
Problem to create script with grease monkey
Hello,
So my problem is a little bit complicated. I try to explain you the best I could. My goal is to write a script for adds anti-blocker.
I have a web page with the following JS scripts:
<[head]>
...
<[script]>function ErrorRedir(){document.location='adblock.php';}<[/script]>
...
<[/head]>
<[body]>
...
<[script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' onerror="ErrorRedir();"]><[/script]>
...
<[/body]>
So, when I have Ad block enabled, a redirection is done to adblock.php. I would like to block this JS script in order to remove all ads, very excessive.
I tried a lot of scripts but nothing works correctly.
My first solution was to remove all "onerror" attribute before start script but I have not found solution.
My second solution was to remove or create another function ErrorRedir() but again, I not found solution.
Do you have any idea about 1 possible solution please?
Thank you in advance.
Clem