Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

vrsumo.com - set-constant scriptlet can't handle the redirect

Open zloyden opened this issue 3 years ago • 1 comments

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', '')
  1. 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.

zloyden avatar Jan 12 '23 12:01 zloyden

I found another scriptlet that works fine, so add it as an exception to 1 step when you'll check it.

vrsumo.com#@%#//scriptlet('set-local-storage-item', 'offer', '2')

zloyden avatar Jan 12 '23 14:01 zloyden