Delete All Cookies From JavaScript
This Chrome extension deletes all cookies (including HTTP only cookies) by either sending a postMessage from any javascript on any page or by clicking the extension action (i.e. clicking the icon).
This chrome extension is particularly useful when you need to delete cookies as part of an automated test.
To delete all cookies using javascript run the following line:
window.postMessage({ type: "CLEAR_COOKIES_EXTENSION_API" }, "*");
To delete cookies for the domain and super-domains of current page using javascript run the following line:
window.postMessage({ type: "CLEAR_COOKIES_DOCUMENT" }, "*");
Note: the CLEAR_COOKIES_DOCUMENT mode does not delete any cookie that has a path value as this is not possible using the document object.
谷歌浏览器、其他Chromium内核的浏览器
为打击盗链困扰,本站已启用人机验证
微信扫码关注左侧公众号,发送“插件”二字获得验证码,验证码5分钟全站有效