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

Fix 'set-local-storage-item' — scriptlet does not work on https://search.brave.com/ #387

Open
superlex opened this issue Dec 9, 2023 · 2 comments
Assignees
Labels
bug Something isn't working Priority: P4

Comments

@superlex
Copy link

superlex commented Dec 9, 2023

Hello,
it looks like the scriptlet set-local-storage-item does not work on https://search.brave.com/.

Tried
search.brave.com,example.org#%#//scriptlet('set-local-storage-item', 'app.usageMetricsOptOut', 'true')
and this the result on
search.brave.com
1

example.org
2

Tried also the same scriptlet with uBlock Origin.
This is the result:
3

Could you take a look, please?

Additional information:
Firefox 120
AG Ext v. 4.2.228

@AdamWr
Copy link
Member

AdamWr commented Dec 9, 2023

It seems that it's related to this issue - AdguardTeam/AdguardBrowserExtension#1733 and in the case of Firefox extension injecting scripts is blocked by website's Content-Security-Policy.

Content-Security-Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).

It works fine in Chrome extension and app for Windows (it should works fine with app for macOS and Android as well, but I didn't test it).

@superlex
Copy link
Author

superlex commented Dec 9, 2023

Thanks @AdamWr for your explanation!
I confirm that it works on AG for Android.

@adguard-bot adguard-bot changed the title set-local-storage-item does not work on https://search.brave.com/ Fix 'set-local-storage-item' — scriptlet does not work on https://search.brave.com/ Oct 21, 2024
@slavaleleka slavaleleka added the bug Something isn't working label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: P4
Projects
None yet
Development

No branches or pull requests

5 participants