Greasy Fork is available in English.

Hash转magnet

Hash转magnet,便于某些下载工具使用

// ==UserScript==
// @name        Hash转magnet
// @namespace    https://greasyfork.org/zh-CN/users/9955-lzx
// @version      0.1
// @description   Hash转magnet,便于某些下载工具使用
// @author       lzx
// @match        https://torrentz2.is/*
// @grant        everyone
// ==/UserScript==

(function() {
    'use strict';
    var Temphash=document.getElementsByClassName("trackers")[0].innerHTML;
    document.getElementsByClassName("trackers")[0].innerHTML=Temphash.replace("info_hash: ","magnet:?xt=urn:btih:");
})();