AdguardTeam / AdguardTeam/Scriptlets

Fix set-constant — scriptlet cannot prevent redirect on vrsumo.com

Open
#280 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.