Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Gab.ai Unfollow Bot
- // @author @Tumblrisms on twitter, @Fact on gab.ai
- // @description Make sure Greasemonkey is ON, DISABLE the FOLLOW BOT (if you use it), and then load your /following page on gab.ai. After a few seconds the script will unfollow all visible accounts and then refresh the page to get more followed accounts. Leave it running in a tab and eventually your account will no longer follow anyone.
- // @namespace gabai
- // @include https://gab.ai/*/following
- // @version 1
- // @grant none
- // ==/UserScript==
- function ReloadThisPage()
- {
- // Engage!
- window.location.href = window.location.href;
- }
- function UnfollowEveryoneOnThisPage()
- {
- // Find all unfollow buttons on the current page
- var nodes = document.evaluate("//a[contains(text(),'Unfollow')]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
- // Loop through and click all the found unfollow buttons that are visible
- for (var i = 0; i < nodes.snapshotLength; i++)
- {
- if (nodes.snapshotItem(i).text == "Unfollow" && nodes.snapshotItem(i).style.display != "none")
- {
- nodes.snapshotItem(i).click();
- }
- }
- // In two seconds all the unfollow requests will definitely have gone through and we can reload
- setTimeout(ReloadThisPage, 2000);
- }
- setTimeout(UnfollowEveryoneOnThisPage, Math.floor((Math.random() * 2000) + 1000));
Advertisement
Add Comment
Please, Sign In to add comment