// ==UserScript== // @name 链接可点击 // @namespace // @version 2025-04-28 // @description 允许所有不可点击的文本链接变为可点击的链接(也就是给他套上了标签) // @author Frank2222 // @match *://*/* // @grant none // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/534278/%E9%93%BE%E6%8E%A5%E5%8F%AF%E7%82%B9%E5%87%BB.user.js // @updateURL https://update.greasyfork.icu/scripts/534278/%E9%93%BE%E6%8E%A5%E5%8F%AF%E7%82%B9%E5%87%BB.meta.js // ==/UserScript== (function() { const urlRegex = /https?:\/\/[^\s<>"'{}()]+/gi; function walk(node) { let child = node.firstChild; while (child) { const next = child.nextSibling; if (child.nodeType === Node.TEXT_NODE) { replaceText(child); } else if (child.nodeType === Node.ELEMENT_NODE && child.tagName !== 'A' && child.tagName !== 'SCRIPT' && child.tagName !== 'STYLE') { // 只处理非