Sleazy Fork is available in English.

琉璃神社自动生成链接

try to take over the world!

// ==UserScript==
// @name         琉璃神社自动生成链接
// @namespace    https://greasyfork.org/zh-CN/users/12293-wcx19911123
// @version      1.0
// @description  try to take over the world!
// @author       wcx19911123
// @include      *www.liuli.*/wp/*
// @include      *www.hacg.*/wp/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    var body = document.getElementsByTagName("body")[0];
    var strList = new Set([...(body.innerHTML.match(/(?<![0-9a-z])[0-9a-z]{32,40}(?![0-9a-z])/ig) || [])]);
    for(var i of strList){
        body.innerHTML = body.innerHTML.replace(i, "<a href='magnet:?xt=urn:btih:"+i+"'>下载链接</a>")
    }
})();