Skip to content
Advertisement

Clear all cookies in a userscript?

How to clear all cookies or at least restart the browser in a tampermonkey/greasemonkey script?

Advertisement

Answer

To clear the cookies edit your Chrome shortcut (or write a shell script in Linux/MacOS) and add

JavaScript

(or use a random port number that’s not used by other processes) so you can send Network.clearBrowserCookies RDP command:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement