您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Stream directly from LegitTorrents with StreamProtocol
// ==UserScript== // @name StreamProtocol for LegitTorrents // @namespace sp-legittorrents // @description Stream directly from LegitTorrents with StreamProtocol // @include http://www.legittorrents.info/index.php?page=torrent-details* // @version 1 // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // ==/UserScript== $(document).ready(function() { var infohash = $("td:contains('Info Hash')").next().text(); var streamUrl = 'stream+torrent' + window.location.origin.slice(4) + '/' + $("a[href^='download.php']").attr('href'); $('#files tr').each(function () { var tds = $(this).children('td'); if (tds.length === 0) return; var td = $(tds[0]); if (!td.hasClass('lista')) return; var name = td.text(); var html = '<a href="' + streamUrl + '#file=' + encodeURIComponent(name) + '&infohash=' + encodeURIComponent(infohash) + '">' + $(this).html() + '</a>'; td.html(html); }); });