// ==UserScript== // @name Twitter Unfollower // @version 0.1 // @description Automatic Twitter unfollower tool. Last Update: 11-22-2014 // @author ekin@gmx.us // @namespace https://greasyfork.org/en/users/6473-ekin // @match https://twitter.com/following // @grant none // @downloadURL none // ==/UserScript== $(function() { var config = { editBtn: ".UserActions-editButton", intervalTime: 2000 }; $(config.editBtn).before(' '); function unfollowAll() { $(".user-actions").each(function() { if (/not-following/i.test($(this).attr("class")) == false) { $(this).children(".follow-button").trigger("click"); } }); } function unfollowInit() { unfollowAll(); setInterval(function() { unfollowAll(); $("html, body").animate({ scrollTop: $(document).height() }, 1000); }, config.intervalTime); } $("#unfollowBtn").click(function() { unfollowInit(); }); });