Created
June 19, 2021 19:20
-
-
Save mikechambers/bfba75deb444fccd49ece6b47594d015 to your computer and use it in GitHub Desktop.
Tapermonkey Userscript for unfollowing all users in a typepad profile
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 New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// NOTE: CHANGE THE URL TO YOUR PROFILE FOLLOWERS PAGE | |
// @match https://www.typepad.com/profile/6p00d83429217d53ef/contacts/ | |
// @icon https://www.google.com/s2/favicons?domain=typepad.com | |
// @grant none | |
// ==/UserScript== | |
(async function() { | |
'use strict'; | |
async function clean() { | |
var a = document.getElementsByClassName("confirm-unfollow"); | |
for (const v of a) { | |
try { | |
v.click(); | |
} catch(e) { | |
} | |
} | |
await new Promise(r => setTimeout(r, 1000)); | |
} | |
await clean(); | |
location.reload(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment