💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
先使用谷歌浏览器overrides添加文件夹,然后将所需要的js文件右键save as overrides过去(需要注意的是路径需要跟原来的对应),最后直接使用ws修改即可 realName: function(t) { let thats = this; // alert(this.$encryption('310112196509030554')); window.wssa = new WebSocket("ws://127.0.0.1:8282"); window.wssa.onopen = function() { alert("连接成功"); }; // let wscesc = ws; window.wssa.onmessage = function(e) { // ws.send(789123456); // var ceshineir = JSON.parse(e.data); var ceshineir = eval("("+e.data+")"); var arrsss = []; arrsss[0] = 11; arrsss[1] = thats.$encryption(ceshineir[1]); arrsss[2] = ceshineir[2]; arrsss[3] = thats.$encryption(ceshineir[2]); var chuanshusj = JSON.stringify(arrsss); thats.ceshichuanshu(chuanshusj); // alert(arrsss); // var httpRequest = new XMLHttpRequest();//第一步:创建需要的对象 // httpRequest.open('POST', 'http://xxz17878.top/index/index/jieshoua', true); //第二步:打开连接 // httpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");//设置请求头 注:post方式必须设置请求头(在建立连接后设置请求头) // httpRequest.send(chuanshusj);//发送请求 将情头体写在send中 }; }, ceshichuanshu: function(data){ // var ws = new WebSocket("ws://127.0.0.1:8282"); window.wssa.send(data); // window.wssa.onopen = function() { // // alert(data); // }; --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- realName: function(t) { let thats = this; // alert(this.$encryption('310112196509030554')); window.wssa = new WebSocket("ws://127.0.0.1:8282"); window.wssa.onopen = function() { alert("连接成功"); }; // let wscesc = ws; window.wssa.onmessage = function(e) { // ws.send(789123456); // var ceshineir = JSON.parse(e.data); var ceshineir = eval("("+e.data+")"); var arrsss = []; arrsss[0] = 11; arrsss[1] = thats.$encryption(ceshineir[1]); arrsss[2] = ceshineir[2]; arrsss[3] = thats.$encryption(ceshineir[2]); var chuanshusj = JSON.stringify(arrsss); thats.ceshichuanshu(chuanshusj); // alert(arrsss); // var httpRequest = new XMLHttpRequest();//第一步:创建需要的对象 // httpRequest.open('POST', 'http://xxz17878.top/index/index/jieshoua', true); //第二步:打开连接 // httpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded");//设置请求头 注:post方式必须设置请求头(在建立连接后设置请求头) // httpRequest.send(chuanshusj);//发送请求 将情头体写在send中 }; }, ceshichuanshu: function(data){ // var ws = new WebSocket("ws://127.0.0.1:8282"); window.wssa.send(data); // window.wssa.onopen = function() { // // alert(data); // }; }, },