Greasy Fork is available in English.

WS Hook

WebSocket Hook

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/432651/976567/WS%20Hook.js

Aŭtoro
Alp Gul
Versio
0.0.1.20211005172321
Kreita
2021/09/19
Ĝisdatigita
2021/10/05
Licenco
N/A

WebSocket Hook

document.addEventListener('globalWebsocketMessage',()=>{});
document.addEventListener('globalWebsocketClose',()=>{});
webHook.filter=(args)=>{...return true;}
webHook.filterSend=(webSocket,args)=>{...return true;}
webHook.beginSend=(webSocket,args)=>{...}
webHook.endSend=(webSocket,args)=>{...}
webHook.WSList[/*index*/].send(/*data*/)