您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds buttons to download all torrents or magnets on a page.
// ==UserScript== // @name Download All Torrents or Magnets // @namespace pxgamer // @version 0.1 // @description Adds buttons to download all torrents or magnets on a page. // @author pxgamer // @include *kat.cr/* // @grant none // ==/UserScript== (function() { 'use strict'; var url = ""; $('#mainSearchTable').before('<button class="siteButton bigButton downloadAll" data-dl-type="torrent">Download All With Torrent</button> <button class="siteButton bigButton downloadAll" data-dl-type="magnet">Download All With Magnet</button>'); $('.downloadAll').click(function () { switch ($(this).attr('data-dl-type')) { case 'magnet': $('a.icon16.askFeedbackjs[data-nop][href^="magnet:?xt="]').each(function () { url = $(this).attr('href'); open(url); }); break; case 'torrent': $('a.icon16.askFeedbackjs[data-download][href^="/torrents/"]').each(function () { url = $(this).attr('href'); open(url); }); break; default: console.info('No Method Selected'); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址