您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
复制某部番的某个字幕组的全部磁链
当前为
// ==UserScript== // @name 蜜柑计划(Mikan Project)复制全部磁链 // @namespace // @version 0.1.1 // @description 复制某部番的某个字幕组的全部磁链 // @author cookedfish // @match http*://mikanime.tv/* // @match http*://mikanani.me/* // @grant GM_setClipboard // @license MIT // ==/UserScript== 'use strict'; function get_xunlei() { var num = parseInt($(this).attr('num')); // 获取点击按钮的编号 var num2 = parseInt($(this).closest('div').attr('id')); var urls = []; var abc=undefined; $('.table').find('a').each(function () { if($(this).attr('class')!=="js-magnet magnet-link") return true; if (parseInt($(this).closest('table').prev('div').attr('id')) !== num2 && $(this).closest('table').prev('div').attr('id')!==abc) { return true; // 继续下一个元素的处理 } urls.push($(this).attr('data-clipboard-text')); }); GM_setClipboard(urls.join('\n')); var max='复制了'+urls.length+'个链接'; var messageBar = document.createElement('div'); messageBar.textContent = max; messageBar.style.position = 'fixed'; messageBar.style.top = '0'; messageBar.style.left = '0'; messageBar.style.width = '100%'; messageBar.style.backgroundColor = 'green'; messageBar.style.color = 'white'; messageBar.style.textAlign = 'center'; messageBar.style.padding = '10px 0'; document.body.appendChild(messageBar); setTimeout(function() { messageBar.parentNode.removeChild(messageBar); // 3秒后自动移除提示 }, 1000); } $(function () { var abc = 0; $(document).on('click', 'a[ref="thunder"]', get_xunlei); // 使用事件委托绑定点击事件 $('.subgroup-text i').closest('a').each(function () { var $thunder_magnet = $('<a ref="thunder" data-text="迅雷-磁力" style="background-color:white" num="' + abc + '">[复制全部]</a>'); $(this).after($thunder_magnet); abc = abc + 1; }); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址