Closed superlex closed 11 months ago
Has something changed about position of the reload token? For https://github.com/AdguardTeam/AdguardFilters/issues/180011 portal.payment.eltax.lta.go.jp##+js(set-cookie, xn_cookieconsent, false, , , reload, 1)
never works but portal.payment.eltax.lta.go.jp##+js(set-cookie, xn_cookieconsent, false, , reload, 1)
does.
set-cookie
has 3 arguments (expire time is fixed as session only) => false, , reload, 1
so false, , , reload, 1
won't work
If you use trusted-set-cookie
, it has 4 arguments (custom expire time) => false, , , reload, 1
Prerequisites
I tried to reproduce the issue when...
Description
Correct AdGuard syntax to set a cookie and reload:
example.org#%#//scriptlet('set-cookie-reload', 'cookie-set1', '1')
See https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#set-cookie-reloadCorrect uBlock0 syntax to set a cookie and reload:
example.org##+js(set-cookie, cookie-set3, 3, , reload, 1)
See https://github.com/gorhill/uBlock/wiki/Resources-Library#set-cookiejs-The same thing applies to trusted-set-cookie https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-trusted-scriptlets.md#trusted-set-cookie-reload https://github.com/gorhill/uBlock/wiki/Resources-Library#trusted-set-cookiejs-
So,
A specific URL where the issue occurs.
example.org
Steps to Reproduce
Add these filters to User Filters List:
Expected behavior
are recognized as correct and applied.
Actual behavior
are recognized as correct and applied.
uBO version
1.52.2
Browser name and version
Firefox 118
Operating System and version
macOS 11
Screenshot