-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve set-cookie scriptlet with optional page reload #111
Comments
We need an example of such a website |
Correct me if I'm wrong: example website: Using
you need to manually reload the page, so you have to use
instead. |
Yeah, it seems to be the case, thank you! |
You're welcome, thanks to you :) |
Merge in ADGUARD-FILTERS/scriptlets from feature/AG-6035 to master Squashed commit of the following: commit d1c7896 Author: Slava Leleka <[email protected]> Date: Mon Jan 18 15:39:20 2021 +0300 fix description commit f833471 Author: Slava Leleka <[email protected]> Date: Thu Jan 14 17:03:25 2021 +0300 add set-cookie-reload scriptlet commit 01d848c Author: Slava Leleka <[email protected]> Date: Wed Jan 13 10:50:47 2021 +0300 rebuild commit d880010 Author: Slava Leleka <[email protected]> Date: Wed Jan 13 10:32:14 2021 +0300 upgrade yarn commit 3ca54b6 Author: Slava Leleka <[email protected]> Date: Wed Jan 13 01:31:34 2021 +0300 update caniuse-lite commit 1207659 Author: Slava Leleka <[email protected]> Date: Wed Jan 13 00:36:44 2021 +0300 add option 'reload' flag for set-cookie
… to master * commit 'db491a792635caa6e43e3cdba2f0694f73b99660': add comment about redirects source.engine using in tests add test for code checking by alias name remove eslint comments make scriptlets/redirects tests work separately divide tests for scriptlets and redirects iframes was -> were improve googlesyndication-adsbygoogle + tests gitignore tests/dist
Some sites need to be reloaded after a cookie was set.
An option to reload the page could be added to scriptlet syntax.
Example:
example.org#%#//scriptlet('set-cookie', 'checking', 'ok', 'reload')
equivalent to
example.org#%#(function(){-1==document.cookie.indexOf("checking")&&(document.cookie="checking=ok; path=/;",location.reload())})();
The text was updated successfully, but these errors were encountered: