您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
启用月卡的记牌器
// ==UserScript== // @name 斗牌魂记牌器 // @namespace card-soul-mod // @version 0.1 // @description 启用月卡的记牌器 // @author larz // @license MIT // @match https://game.card-soul.com/* // ==/UserScript== function isLoaded() { try { return ( this != null && app != null && app.PvdMgr != null && app.PvdMgr.sendReq2Auth != null ); } catch (err) { return false; } } function init() { if (!isLoaded()) { return setTimeout(init, 2000); } console.log("Game loaded !"); app.PvdMgr.sendReq2Auth = ((fn) => function (name, data, callback, _void_) { callback = ((fn) => function (...args) { if (args.slice(-1)[0].constructor.name == "ResLogin") args.slice(-1)[0].mall.month_ticket = [...Array(5).keys()].map( (num) => net.ProtobufManager.lookupType("pk.GoodsRecord").fromObject({ goods_id: 30000 + num, expire_time: Math.floor(Date.now() / 1000) + 2592000, }) ); fn.call(this, ...args); })(callback); fn.call(this, name, data, callback, _void_); })(app.PvdMgr.sendReq2Auth); } init();