// ==UserScript==
// @name 磁力链文本变链接
// @namespace ACScript
// @version 1.0
// @description 无
// @author 狐狸
// @include *://tieba.baidu.com/*
// @include *://meta.appinn.net/*
// @grant none
// @run-at document-end
// @downloadURL none
// ==/UserScript==
//半自动填暗号
(function() {
setTimeout(function(){
document.querySelector("#comein").value = "1052"
}, 1000);
//磁力链文本变链接
document.onclick = function(e) {
var link = /((magnet?:)(\.|\w|-|#|\?|=|\/|\+|@|%|&|:|;|!|\*|(?![\u4e00-\u9fa5\s*\n\r'"]))+)/g;
if (!e.target.innerHTML.match(/ 4) {
e.target.innerHTML = e.target.innerHTML.replace(link ,'$1');
}
};
})();