Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

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

Open superlex opened this issue 2 years ago • 2 comments

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

superlex avatar Dec 09 '23 00:12 superlex

It seems that it's related to this issue - https://github.com/AdguardTeam/AdguardBrowserExtension/issues/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).

AdamWr avatar Dec 09 '23 18:12 AdamWr

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

superlex avatar Dec 09 '23 19:12 superlex