Delete cookies Bookmarklet

Delete cookies for current page.

1. The next time you're on a site where you need to delete cookies (e.g. logout), just click on the link
2. Done (=

Source (www.squirrelscript.net)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%7BC%3Ddocument.cookie.split%28%22%3B%20%22%29%3Bfor%28d%3D%22.%22+location.host%3Bd%3Bd%3D%28%22%22+d%29.substr%281%29.match%28/%5C..*%24/%29%29for%28sl%3D0%3Bsl%3C2%3B++sl%29for%28p%3D%22/%22+location.pathname%3Bp%3Bp%3Dp.substring%280%2Cp.lastIndexOf%28%27/%27%29%29%29for%28i%20in%20C%29if%28c%3DC%5Bi%5D%29%7Bdocument.cookie%3Dc+%22%3B%20domain%3D%22+%28d.slice%28sl%29+%27%27%29.replace%28/%3A%5Cd+%24/%2C%27%27%29+%22%3B%20path%3D%22+p.slice%281%29+%22/%22+%22%3B%20expires%3D%22+new%20Date%28%28new%20Date%29.getTime%28%29-1e11%29.toGMTString%28%29%7D%7D%29%28%29


Rate it:


Tags:

Comments

Comments so far. Add yours.

Tom

Works great. Used it to delete the google analytics site overlay "GASO" cookie. Clean, simple fast. I'm live it.