disable onclick ads with a content-script in Google Chrome
Solution 1
I have Adblocker Plus, and it seems like it is not recognizing "on Click" events as pop-ups, rather normal clicked links. And the logic is simple, no Adblocker will block you from clicking something intentionally and it (the link) opening in another window/tab.
The problem is the new window contains your clicked Url, while the original window/tab "Refreshes" (i.e. redirects) to another url.
Advertising companies seem to use this trick to bypass adblocking software.
Solution 2
Just ditch Chrome and use Firefox. Firefox already have built-in mouse-click popups. I think all addons like Adguard or Adblock can not disable mouse-click popups. If you use Firefox, these are the steps:
- Type about:config in the browser's address bar and hit the enter key.
- First time users need to confirm that they be careful on the next page.
- Type or paste dom.popup_allowed_events into the search field.
- The value of the preference highlights all events that are allowed to spawn popups.
- Edit the value to remove some or all of the items here.
Related videos on Youtube
Zayats
Updated on July 09, 2022Comments
-
Zayats almost 2 years
There are some video streaming sites that pop up an ad anytime you click anywhere on the page. The problem is, you have to click on the page to press play! So I was thinking of making a UserScript that disables the script that does this. The only problem is, I already disable all the scripts on the site and when I do it still pops up. Is there a way that I can disable them ? I'm also using jQuery, so if I can do it through their interface, that would be great.
edit: Two perfect examples of such sites are daclips.in and gorrilavid.in
-
Overv over 12 yearsCould you provide an example of such a site?
-
-
skarz over 7 yearsBecause they don't block click under ads.