Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (22 sloc) 0.599 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
// deletes root cookies for current domain
javascript: (function () {
    var C = document.cookie.split("; ");
    if (C[0]) {
var locparts = location.host.split(".");
for (var i = 0; i < locparts.length-1; i++) {
var loc = locparts.slice(i).join(".");
for (var ookie in C) {
var deletestring = "; domain=" + loc +
"; path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT";
document.cookie = C[ookie] + deletestring;
}
}
if (document.cookie) {
alert('cookie deletion failed');
} else {
alert('cookies deleted');
}
    } else {
alert('no cookies found');
    }
})();
Something went wrong with that request. Please try again.