琉璃神社自动生成链接

try to take over the world!

06.11.2021 itibariyledir. En son verisyonu görün.

// ==UserScript==
// @name         琉璃神社自动生成链接
// @namespace    http://tampermonkey.net/
// @version      0.8
// @description  try to take over the world!
// @author       wcx19911123
// @include      *www.liuli.*/wp/*
// @include      *www.hacg.*/wp/*
// @grant        none
// ==/UserScript==

(function() {
    var body = document.getElementsByTagName("body")[0];
    var strList = body.innerHTML.match(/[0-9a-z]{40}/g);
    var done = {};
    for(var i = 0; strList && i < strList.length; i++){
        if(!done[strList[i]]){
            done[strList[i]] = true;
            body.innerHTML = body.innerHTML.replace(strList[i], "<a href='magnet:?xt=urn:btih:"+strList[i]+"'>下载链接</a>")
        }
    }
})();