您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a download button to Kinozal.TV to search page for faster download of required torrent.
// ==UserScript== // @name Kinozal.TV - Download button in search page. // @version 1.0 // @description Adds a download button to Kinozal.TV to search page for faster download of required torrent. // @match http://kinozal.tv/browse.php* // @grant none // @author Epsil0neR // @namespace https://gf.qytechs.cn/en/users/19387 // ==/UserScript== $(function(){ var css = '.btnDownloadTorrent {display:inline-block;height:32px;width:32px;background-image: url(https://cdn3.iconfinder.com/data/icons/archive-icons/64/Download-512.png);background-size: 32px 32px;}', head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); style.type = 'text/css'; if (style.styleSheet){ style.styleSheet.cssText = css; } else { style.appendChild(document.createTextNode(css)); } head.appendChild(style); var table = $('.t_peer'); var h = table.find('.mn'); h.prepend('<td class="z"></td>'); table.find('tr').not(h).each(function(i,e){ var td = document.createElement('td'); $(e).prepend(td); var url = $(e).find('.nam a').attr('href'); var uArgs = url.split('?')[1].split('&'); // Find torrent id. var id = null; uArgs.forEach(function(el){ if (el.startsWith('id=')){ id = el.split('=')[1]; } }); if (id !== null){ // Create button var a = document.createElement('a'); a.className = 'btnDownloadTorrent'; a.href = 'http://dl.kinozal.tv/download.php?id=' + id; td.appendChild(a); } }); });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址