Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investing.com #11

Open
JuanMiguelPR opened this issue Jun 29, 2023 · 2 comments
Open

investing.com #11

JuanMiguelPR opened this issue Jun 29, 2023 · 2 comments

Comments

@JuanMiguelPR
Copy link

JuanMiguelPR commented Jun 29, 2023

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
Copy link
Author

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
Copy link
Author

Closed the issue by mistake.

@JuanMiguelPR JuanMiguelPR reopened this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant