AdguardTeam / AdguardTeam/Scriptlets
Improve 'trusted-suppress-native-method' — some methods cannot be suppressed
Open
enhancement
Priority: P4
- Dominant language
- JavaScript
- Stars
- 195
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
I tried to suppress `Math.floor` with
```
exploader.net#%#//scriptlet('trusted-suppress-native-method', 'Math.floor', '/([12]\d\.\d+|\d\.\d+)/', 'prevent')
```
but it fails. This is more of a question, but is it possible to suppress methods without argument such as `Math.random` and `Element.prototype.getBoundingClientRect`? `""` as the argment doesn't work.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.