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

ads showed with 1.30.0 version #4118

Open
lighscent opened this issue Jul 19, 2024 · 6 comments
Open

ads showed with 1.30.0 version #4118

lighscent opened this issue Jul 19, 2024 · 6 comments

Comments

@lighscent
Copy link

lighscent commented Jul 19, 2024

ads are showed with last version

@chrmod
Copy link
Member

chrmod commented Jul 19, 2024

Hi there. Can you please elaborate? What is your setup? What pages are affected?

@lighscent
Copy link
Author

i use electron
i have ads on Youtube

@seia-soto
Copy link
Member

Hi @light2k4 ,

We currently have an issue with CSP on Electron. Due to this issue, dynamic script injections required to block ads on complex websites might not work.

#3819

We're planning to look into it after the urgent updates.

Thanks

@seia-soto
Copy link
Member

seia-soto commented Jul 26, 2024

Hi @light2k4 ,

I assume this is a filter problem. I cannot reproduce the issue at the latest revisions. If you can elaborate more, it'd be best: e.g. providing a repository that can reproduce the issue (with steps)

Thanks

@lighscent
Copy link
Author

@seia-soto
Copy link
Member

Hi @light2k4 ,

From your code, I could check you're using fromPrebuiltAdsAndTracking method to create an engine instance. The method will load the following filters:

const PREFIX =
  'https://raw.githubusercontent.com/ghostery/adblocker/master/packages/adblocker/assets';

export const adsLists = [
  `${PREFIX}/easylist/easylist.txt`,
  `${PREFIX}/peter-lowe/serverlist.txt`,
  `${PREFIX}/ublock-origin/badware.txt`,
  `${PREFIX}/ublock-origin/filters-2020.txt`,
  `${PREFIX}/ublock-origin/filters-2021.txt`,
  `${PREFIX}/ublock-origin/filters-2022.txt`,
  `${PREFIX}/ublock-origin/filters-2023.txt`,
  `${PREFIX}/ublock-origin/filters-2024.txt`,
  `${PREFIX}/ublock-origin/filters.txt`,
  `${PREFIX}/ublock-origin/quick-fixes.txt`,
  `${PREFIX}/ublock-origin/resource-abuse.txt`,
  `${PREFIX}/ublock-origin/unbreak.txt`,
];

export const adsAndTrackingLists = [
  ...adsLists,
  `${PREFIX}/easylist/easyprivacy.txt`,
  `${PREFIX}/ublock-origin/privacy.txt`,
];

This doesn't mean you can make a complain on those filter lists since we don't know if it's a filter-side problem or not at this moment. We're gradually catching up their functional requirement in those filter lists but not all the filters are not supported. Please, checke out the compatibility matrix in the following URL: https://github.com/ghostery/adblocker/wiki/Compatibility-Matrix . If you can check what filter is not working at the moment and what's the problem, please try to elaborate it here. We'll consider it as a plan to next release.

Especially, you need a stable reproducible example of a website and filter. We may not see the bug depending on the reproduction date and time.

Best

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

3 participants