// ==UserScript==
// @name KAT - Mass Accept
// @namespace MassAccept
// @version 1.00
// @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()
{
$(this).trigger( "click" );
});
});
$("#rejectAll").click(function()
{
$('a[href^="/friend/cancel/"]').each(function()
{
$(this).trigger( "click" );
});
});