antiadblockfilters icon indicating copy to clipboard operation
antiadblockfilters copied to clipboard

investing.com

Open JuanMiguelPR opened this issue 1 year ago • 2 comments

Hi, I'm using the ad blocker intergrated to Opera GX and it's detected by investing.com.

The javascript that detects the ad blocker creates the pop-up of class name class="ad-blocker-popup" and id adNotificationPopup. It also enables a secondary overlay which grays out all the page behind it, the class is class="secondaryOverlay js-general-overlay".

I tried multiple solutions by adding a custom list:

  • Adding ##.ad-blocker-popup, ##.secondaryOverlay and ##.js-general-overlay, won't work, the overlay won't appear again but the pop-up does
  • Tried adding ||investing.com/*/ad-notification-popup and ||investing.com/js/n/ad-notification-popup-1.02.min.js but neither had effect
  • And finally achieved it by adding investing.com##div[id^="adNotificationPopup"] for the pop up and ##.secondaryOverlay for the overlay

Could you help me by adding these to the filter list? Also I would like to learn more, what would be the ideal way to do it? How could the specific javascript be blocked instead of using the <div id?

Thanks in advance!

JuanMiguelPR avatar Jun 29 '23 18:06 JuanMiguelPR

Hi. The webpage was updated, so adding investing.com##div[id^="adNotificationPopup"] does not work anymore. The guys from uBlockOrigin solved the current adblock popup by adding the next filters:

investing.com##+js(set, adNotificationDetected, false)
investing.com##[class*="notification_notification"]
investing.com##div[class] > .ad-blockers-section:upward(1)

They told me they won't work with this list due to differences in the syntax. Could you help me to add these filters with the correct syntax for EasyList? Or understanding it to be able to contribute more.

Thanks

JuanMiguelPR avatar Jul 11 '23 20:07 JuanMiguelPR

Closed the issue by mistake.

JuanMiguelPR avatar Jul 11 '23 20:07 JuanMiguelPR