// ==UserScript== // @name KAT - Mass Accept // @namespace MassAccept // @version 1.02 // @description Adds a button to your profile that will allow you to accept all friend requests // @require http://code.jquery.com/jquery-latest.js // @match http://kickass.to/user/* // @match https://kickass.to/user/* // @downloadURL none // ==/UserScript== var user = $('li > a[href^="/user/"]').attr("href"); if (location.pathname == user) { $("h3:contains('Awaiting my approval')").append('accept all'); $("h3:contains('Awaiting my approval')").append('reject all'); } $("#acceptAll").click(function() { $('a[href^="/friend/approve/"]').each(function() { if ($(this).is(':visible')) { $(this).trigger( "click" ); } }); }); $("#rejectAll").click(function() { $('a[href^="/friend/cancel/"]').each(function() { if ($(this).is(':visible') && $(this).text() == "reject") { $(this).trigger( "click" ); } // else link is request YOU sent }); });