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

'href-sanitizer' doesn't work as intended #475

Open
billkewl opened this issue Jan 19, 2025 · 1 comment
Open

'href-sanitizer' doesn't work as intended #475

billkewl opened this issue Jan 19, 2025 · 1 comment
Assignees

Comments

@billkewl
Copy link

Adguard for Mac
Firefox 134 on macOS

Google search redirects a tracking url to search result links like this
https://www.google.com/url?sa=t&source=web&rct=j&opi=[redact]&url=https://adguard.com/en/welcome.html&ved=[redact]&usg=[redact]

I added a user rule
www.google.com#%#//scriptlet('href-sanitizer', '#main a[href*="url=http"]', '?url'
which in theory should make the href clean.
However, nothing changed with this rule. Is this some kind of bug?

By the way,
www.google.*###main a[href][data-sb^="/url?"]:remove-attr(data-sb) of uBlock filters – Privacy works
so I rewrite it in Adguard syntax
www.google.*#%#//scriptlet('remove-attr', 'data-sb') and it successfully removed the tracking urls

@krystian3w
Copy link

Theoretically, in the background, the link may no longer be updated or Google's scripts will overtake the observation of mutations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants