Skip to content

Instantly share code, notes, and snippets.

@TheEpicFace007
Created April 26, 2023 01:41
Show Gist options
  • Save TheEpicFace007/fa0915bdf75066f3b738d9f9ba6d9172 to your computer and use it in GitHub Desktop.
Save TheEpicFace007/fa0915bdf75066f3b738d9f9ba6d9172 to your computer and use it in GitHub Desktop.
// ==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