您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script will replace all "case-battle/1234567" text messages to clickable links.
// ==UserScript== // @name Cases.GG - Text to Link // @namespace https://gge.gg // @version 0.1 // @description This script will replace all "case-battle/1234567" text messages to clickable links. // @author twitter.com/thes0meguy // @match https://cases.gg/* // @icon https://www.google.com/s2/favicons?sz=64&domain=cases.gg // @grant none // @license WTFPL // ==/UserScript== (function() { 'use strict'; setInterval(function() { // Select all div elements with the specified classes var textDivs = document.querySelectorAll('div.gap-1.text-text.break-words.text-sm.font-medium'); for (var i = 0; i < textDivs.length; i++) { var div = textDivs[i]; var text = div.textContent; if (text.includes("case-battles")) { var regex = /(case-battles\/[^\s]+)/gi; var newText = text.replace(regex, '<a href="https://cases.gg/$&" target="_blank" style="color: #61d5ff;">$&</a>'); div.innerHTML = newText; } } }, 500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址