Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

'href-sanitizer' doesn't work as intended

Open billkewl opened this issue 11 months ago • 1 comments

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

billkewl avatar Jan 19 '25 03:01 billkewl

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

krystian3w avatar Jan 21 '25 21:01 krystian3w