add proxy switch demo

This commit is contained in:
go0p
2025-03-04 16:07:14 +08:00
parent 692ab7760e
commit 8c30607514
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)