您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a torrent download button to idope.se
// ==UserScript== // @name Add torrent download button to idope.se // @namespace http://www.dieterholvoet.com // @version 1.0 // @description Adds a torrent download button to idope.se // @author Dieter Holvoet // @match https://idope.se/torrent/* // @grant none // ==/UserScript== (function() { 'use strict'; // Variables var styles = "display: block; color: white; background: url(https://idope.se/static/search/pc/img/infodownloadbackground.png); width: 110px; float: left; height: 26px; line-height: 26px; text-align: center; font-size: 12px;"; var btn_magnet = document.getElementById("downloaddiv"), btn_magnet_new = document.createElement("a"), btn_torrent = document.createElement("a"), btn_share = document.getElementsByClassName("share")[0], magnet_url = document.getElementById("mangetinfo").getAttribute("href"), container = btn_magnet.parentNode; // Create magnet button btn_magnet_new.innerText = "MAGNET"; btn_magnet_new.setAttribute("style", styles); btn_magnet_new.setAttribute("href", magnet_url); btn_magnet_new.style.margin = "14px 0 0 0"; // Create torrent button btn_torrent.innerText = "TORRENT"; btn_torrent.setAttribute("style", styles); btn_torrent.setAttribute("href", "http://itorrents.org/torrent/"+magnet_url.split(":").slice(-1)[0]+".torrent"); btn_torrent.style.margin = "14px 0 0 8px"; // Remove and insert buttons container.insertBefore(btn_magnet_new, btn_share); container.insertBefore(btn_torrent, btn_share); container.removeChild(btn_magnet); document.getElementById("magnet").style.visibility = "hidden"; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址