AdguardTeam / AdguardTeam/Scriptlets
Fix set-constant — scriptlet cannot prevent redirect on vrsumo.com
Aperta
bug
Priority: P4
site-specific
- Lingua principale
- JavaScript
- Stelle
- 195
- Fork
- 33
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.