add proxy switch demo

This commit is contained in:
go0p
2025-03-02 15:31:20 +08:00
parent 391f7292e7
commit 5cb1d1fa22
28 changed files with 12458 additions and 28 deletions
+4 -1
View File
@@ -1,10 +1,13 @@
import {ActionType, injectScriptAndSendMessage, WebSocketManager} from './socket.js';
import { setupProxyHandlers } from './proxy.js';
import { ProxyActionType } from './types/action.js';
console.info("Chrome Extenstion Background is loaded")
const websocketManager = new WebSocketManager();
// 设置代理处理器
setupProxyHandlers();
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
console.log("msg", msg)