Created
April 26, 2023 01:41
-
-
Save TheEpicFace007/fa0915bdf75066f3b738d9f9ba6d9172 to your computer and use it in GitHub Desktop.
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
// ==UserScript== | |
// @name Unlimited free article | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Free paid article for medium | |
// @author Charlie Levasseur | |
// @match https://medium.com/* | |
// @icon https://cdn.freebiesupply.com/logos/large/2x/the-pirate-bay-logo-png-transparent.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
localStorage.clear() | |
console.log("Cleared localstorage"); | |
document.cookie = ''; | |
console.log("Cleared cookie"); | |
indexedDB.databases().then((r) => { | |
for (var i = 0; i < r.length; i++) window.indexedDB.deleteDatabase(r[i].name); | |
}).then(() => { | |
console.log("Cleared indexedDB"); | |
}); | |
navigator.serviceWorker.getRegistrations().then(function(registrations) { | |
let numberOfRegistration = 0; | |
for(let registration of registrations) { | |
registration.unregister().then(function() { | |
console.log("registration #" + numberOfRegistration + " unregistered"); | |
numberOfRegistration += 1; | |
}); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment