disable onclick ads with a content-script in Google Chrome

39,689

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:

  1. Type about:config in the browser's address bar and hit the enter key.
  2. First time users need to confirm that they be careful on the next page.
  3. Type or paste dom.popup_allowed_events into the search field.
  4. The value of the preference highlights all events that are allowed to spawn popups.
  5. Edit the value to remove some or all of the items here.
Share:
39,689

Related videos on Youtube

Zayats
Author by

Zayats

Updated on July 09, 2022

Comments

  • Zayats
    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
      Overv over 12 years
      Could you provide an example of such a site?
  • skarz
    skarz over 7 years
    Because they don't block click under ads.