您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copies uuid of friendly games in mahjong soul
// ==UserScript== // @name scrape-majsoul-game-uuid // @version 0.0.1 // @author Sanggu Han // @description Copies uuid of friendly games in mahjong soul // @homepage https://gf.qytechs.cn/en/scripts/444785 // @homepageURL https://gf.qytechs.cn/en/scripts/444785 // @supportURL https://github.com/KOREAN139/syssec-leaderboard/issues // @namespace mjuuidscraper // @license MIT // @match https://game.mahjongsoul.com/* // ==/UserScript== (function () { const L_KEY_CODE = "KeyL"; const FRIENDLY_GAME_TYPE = 1; document.addEventListener("keydown", e => { e = e || window.event; if (e.code != L_KEY_CODE) { return; } waitAppLoading(); fetchLogList(); }); const waitAppLoading = () => { if (typeof app === "undefined" || !app.NetAgent || !app.NetAgent.prototype) { return setTimeout(() => waitAppLoading(), 1000); } console.log("app loaded"); } const fetchLogList = () => { console.log("fetchGameRecordList requested"); app.NetAgent.sendReq2Lobby( "Lobby", "fetchGameRecordList", { start: 0, count: 100, type: FRIENDLY_GAME_TYPE }, (err, res) => { if (err || res.error) { console.log("error", err, res.error); return; } console.log("fetchGameRecordList successed"); const uuids = res.record_list.map(r => r.uuid); makePopup(uuids); }); }; const makePopup = uuids => { let popup = open("", "gameUuids", "_blank", "width=200,height=200"); popup.document.write(uuids.join('\n')); popup.document.body.style.whiteSpace="pre-line"; }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址