您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Scenexe socket fiddler. Modify incoming and outgoing packets by writing functions for incoming and outgoing.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/457775/1135844/Scenexe%20Socket%20Fiddler.js
Allows you to log, modify, or remove incoming and outgoing packets by writing functions for window.incoming and window.outgoing.
To use this library, include the following 2 lines in your userscript header:
// @require https://gf.qytechs.cn/scripts/457386-scenexeutils/code/ScenexeUtils.js?version=1135843
// @require https://gf.qytechs.cn/scripts/457775-scenexe-socket-fiddler/code/Scenexe%20Socket%20Fiddler.js?version=1135837
The 1st adds basic scenexe utils like encode, decode, encodeInverse, decodeInverse, etc.
The 2nd is this library.
Also, scripts using these libraries should not be run at document-start.
A simple function you can write is a simple socket logger:
window.incoming = (data) => {
console.log('incoming:', data);
}
window.outgoing = (data) => {
console.log('outgoing:', data);
}
The incoming data is an array where the 1st item is an opcode and the 2nd item contains the packet data.
If you need to modify incoming and outgoing packets, just return the modified data.
Here's an example for removing bullets from incoming GAME_UPDATE packets.
window.incoming = (data) => {
if (data[0] == window.MSG_TYPES.INCOMING.GAME_UPDATE)
data[1][1] = [];
return data;
}
If you need to prevent certain packets from being processed or sent, return "discard".
Here's an example for preventing the client from processing a SEND_TO_SERVER packet. You receive this packet before you get teleported to another server and it tells your client which server to connect to next. By removing it, we prevent our client from going to another server.
window.incoming = (data) => {
if (data[0] == window.MSG_TYPES.INCOMING.SEND_TO_SERVER)
return "discard";
}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址