Skip to content

Instantly share code, notes, and snippets.

View davesheffer's full-sized avatar
🤿
Focusing

David Sheffer davesheffer

🤿
Focusing
View GitHub Profile
var theCookies = document.cookie.split(';');
for (var i = 1 ; i <= theCookies.length; i++) {
var acookie = theCookies[i-1];
var cookieArr = acookie.split('=');
console.log(cookieArr[0]);
document.cookie = cookieArr[0]+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
}
// Get cache storage and clear cache storage
window.caches.keys().then(function(names) {