Skip to content

Instantly share code, notes, and snippets.

@mikechambers
Created June 19, 2021 19:20
Show Gist options
  • Save mikechambers/bfba75deb444fccd49ece6b47594d015 to your computer and use it in GitHub Desktop.
Save mikechambers/bfba75deb444fccd49ece6b47594d015 to your computer and use it in GitHub Desktop.
Tapermonkey Userscript for unfollowing all users in a typepad profile
// ==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