您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Piratebay download via torrents
// ==UserScript== // @name TPB Torrent Downloads Fork // @version 0.6 // @description Piratebay download via torrents // @include *thepiratebay.se/* // @include *thepiratebay.org/* // @require https://code.jquery.com/jquery-latest.min.js // @namespace https://greasyfork.org/users/59385 // ==/UserScript== (function() { 'use strict'; $('a[href^="magnet:"]').each(function() { var hash = $(this).attr('href').split(":")[3]; hash = hash.split("&")[0]; $(this).after('<br/><a href="https://thetorrent.org/'+hash+'.torrent" title="Download using torrent file">Download torrent file</a>'); }); })();