Created
March 6, 2015 13:23
-
-
Save evenfrost/55fa68206482c38c8f9c to your computer and use it in GitHub Desktop.
Clears all cokies from bandcamp site.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Clears all cokies from bandcamp site. | |
*/ | |
(function () { | |
var cookies = document.cookie.split(';'); | |
for (var i = 0; i < cookies.length; i++) { | |
var cookie = cookies[i].trim(); | |
var eqPos = cookie.indexOf('='); | |
var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; | |
document.cookie = name + '=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=.bandcamp.com;path=/'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment