-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add new scriptlet — 'trusted-suppress-native-method' #383
Comments
abort-on-localStorage-read
abort-on-localStorage-read
/ '-write'
abort-on-localStorage-read
/ '-write'abort-on-localStorage-read
/ -write
What do you think about making it a more generic scriptlet? |
@AdamWr Maybe it is a good idea, but in this case it could be used only in our (trusted) filters. |
I actually think that "abort" scriptlets are relatively safe and we can make it generally available |
abort-on-localStorage-read
/ -write
trusted-suppress-native-method
trusted-suppress-native-method
Example, where it may be useful - site checks
_egoTab
key and it's value.Actually more sites like this, since we can block in other ways. But this method can speed up rule creation.
#%#!function(){const e={apply:(e,o,t)=>{if(t[0]&&t[0].includes("fs.adb"))throw new Error;return Reflect.apply(e,o,t)}};window.localStorage.setItem=new Proxy(window.localStorage.setItem,e)}();
The text was updated successfully, but these errors were encountered: