您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Creates a link to search for
// ==UserScript== // @name ShowRSS --> torrentz.eu search // @namespace userscript.danielrozenberg.com // @description Creates a link to search for // @include http://showrss.info/* // @include https://showrss.info/* // @version 1.0.2 // @grant none // ==/UserScript== var ENTRY_TEXT_REGEXP = /^(.+) (\d+)x(\d+).*$/; var newStyle = document.createElement('style'); newStyle.setAttribute('type', 'text/css'); newStyle.textContent = 'div.torrentz { display: inline; margin-left: 2em; color: silver; }' + 'div.torrentz span::after { content: ":" }' + 'div.torrentz a { margin-left: 0.5em; color: silver; text-decoration: underline; }' + 'div.torrentz a:hover { color: gray; }'; document.head.appendChild(newStyle); var showEntries = document.querySelectorAll('#show_timeline div.showentry'); console.debug(showEntries); for (var i = 0; i < showEntries.length; i++) { var showEntry = showEntries[i]; var entry = showEntry.querySelector('a:not([class^="checkbox_"])').textContent.match(ENTRY_TEXT_REGEXP); if (entry) { var filteredClass = showEntry.getElementsByTagName('a')[0].classList.contains('filtered') ? 'filtered' : 'unfiltered'; var title = entry[1]; var season = parseInt(entry[2]); season = ((season < 10) ? '0' : '') + season; var episode = 's' + season + 'e' + entry[3]; var torrentzDiv = document.createElement('div'); torrentzDiv.classList.add('torrentz'); torrentzDiv.classList.add(filteredClass); torrentzDiv.innerHTML = '<span>Search Torrentz</span>' + '<a href="https://torrentz.eu/search?q=' + encodeURIComponent(title + ' ' + episode + ' 1080p') + '">1080p</a>' + '<a href="https://torrentz.eu/search?q=' + encodeURIComponent(title + ' ' + episode + ' 720p') + '">720p</a>' + '<a href="https://torrentz.eu/search?q=' + encodeURIComponent(title + ' ' + episode) + '">SD</a>'; showEntry.appendChild(torrentzDiv); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址