[Script] Clear the Cookies of the current site


Wilser

Recommended Posts

Please move this entry to the extensions section

Bookmarklet: 

Tittle: Clear Cookies

Script: 

javascript:void((function(){var cookie_list,sub_domain,location_pathname,cookie_index,cookie_count;cookie_count=0;cookie_list=document.cookie.split("; ");for(cookie_index=0;cookie_index<cookie_list.length&&cookie_list[cookie_index];cookie_index++){cookie_count++;for(sub_domain="."+location.host;sub_domain;sub_domain=sub_domain.replace(/^(?:\.|[^\.]+)/,"")){for(location_pathname=location.pathname;location_pathname;location_pathname=location_pathname.replace(/.$/,"")){document.cookie=(cookie_list[cookie_index]+"; domain="+sub_domain+"; path="+location_pathname+"; expires="+new Date((new Date()).getTime()-1e11).toGMTString());}}}alert("Expired "+cookie_count+" cookies");})())

 

Edited by Wilser
Link to comment
Share on other sites

  • 4 weeks later...