您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to your profile that will allow you to accept all friend requests
当前为
// ==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/* // ==/UserScript== var user = $('li > a[href^="/user/"]').attr("href"); if (location.pathname == user) { $("h3:contains('Awaiting my approval')").append('<a id="acceptAll" title="accept all" class="smallButton siteButton" style="margin-left:10px;"><span style="color:white;">accept all</span></a>'); $("h3:contains('Awaiting my approval')").append('<a id="rejectAll" title="reject all" class="smallButton siteButton" style="margin-left:10px;"><span style="color:white;">reject all</span></a>'); } $("#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 }); });