// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description 小黑盒H5页面组队,复制玩家昵称时,前面自动补全 “/j ” // @author 过清#7925 // @match https://api.xiaoheihe.cn/* // @icon https://www.google.com/s2/favicons?sz=64&domain=xiaoheihe.cn // @grant none // @run-at document-end // @license MPL // @downloadURL none // ==/UserScript== (function() { 'use strict'; setTimeout(()=>{ document.querySelectorAll(".copy-main-title").forEach(item => { var text = item.getAttribute("data-clipboard-text") if(!(text.startsWith('/j ') || text.startsWith('/J '))) { item.setAttribute("data-clipboard-text",'/j '+ text) } }) },5000); })();