您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
download all attachments
// ==UserScript== // @name TVBOXNOW Download // @version 0.8 // @description download all attachments // @author JasonC // @match http://tvboxnow.com/thread-*.html // @match https://tvboxnow.com/thread-*.html // @match http://www.tvboxnow.com/thread-*.html // @match https://www.tvboxnow.com/thread-*.html // @match https://www.tvboxnow.com/viewthread.php* // @grant none // @namespace https://gf.qytechs.cn/users/165799 // ==/UserScript== var TVBoxNowLinks = new Array(); function DownloadTVBoxNowLink() { if (TVBoxNowLinks.length > 0) { var href = TVBoxNowLinks.pop(); var ifrm = document.createElement("IFRAME"); ifrm.src = href; ifrm.onload = function() { var DLBtn = this.contentDocument.querySelectorAll('a[href^="attachment.php?"]')[0]; try{DLBtn.click();}catch(e){} DownloadTVBoxNowLink(); }; document.body.appendChild(ifrm); } } (function() { var MainDLBtn = document.createElement('INPUT'); MainDLBtn.type = 'button'; MainDLBtn.style.position = 'fixed'; MainDLBtn.style.top = '10px'; MainDLBtn.style.left = '10px'; MainDLBtn.value = 'Download'; MainDLBtn.onclick = function() { var links = document.querySelectorAll('a[href^="attachment.php?"]'); var linkc = prompt("Link Contains:",".torrent"); var Skips = parseInt(prompt("Skips:","0")); for (var i = 0; i < links.length; i++) { var link = links[i]; if (linkc != "" && link.innerHTML.toLowerCase().indexOf(linkc.toLowerCase()) == -1) { continue; } if (link.innerHTML.toLowerCase().indexOf('.torrent') == -1) { continue; } if (Skips > 0) { Skips--; continue; } link.style.outline = "2px dashed green"; TVBoxNowLinks.push(link.href); } DownloadTVBoxNowLink(); }; document.body.appendChild(MainDLBtn); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址