AdguardTeam / AdguardTeam/Scriptlets
Fix set-constant — scriptlet cannot prevent redirect on vrsumo.com
Open
bug
Priority: P4
site-specific
- Dominant language
- JavaScript
- Stars
- 195
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
There is an issue related to the scriptlet `set-constant`.
1. Add these rules
```
vrsumo.com#@%#Object.defineProperty(window, 'offer', { value: ''});
vrsumo.com#%#//scriptlet('set-constant', 'offer', '')
```
2. When you open the link from the task https://github.com/AdguardTeam/AdguardFilters/issues/59478 and click on the mouse back button, you get redirected. The scriptlet does not prevent the redirect, but the js rule does.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.