您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy magnet links to clipboard
当前为
// ==UserScript== // @name Copy Magnets // @namespace http://rix.li/ // @version 0.2 // @description Copy magnet links to clipboard // @author rix // @match *://www.tokyotosho.info/* // @require http://code.jquery.com/jquery-latest.js // @grant GM_setClipboard // @grant GM_log // ==/UserScript== var list = $('a[href^=magnet]'); var links = []; list.each(function(){ links.push(this.href); }); list.click(function(e) { e.preventDefault(); GM_setClipboard(this.href, 'text'); }); $('<div style="text-align: center; margin: 20px;"></div>').append( $('<button>Copy All</button>').click(function(){ GM_setClipboard(links.join('\n')); }) ).insertBefore('.listing');