From 037423853af6f4ace8fa6c3d8ea6dd236014976f Mon Sep 17 00:00:00 2001 From: admin123 Date: Mon, 20 Apr 2026 19:53:32 +0800 Subject: [PATCH] fix: remove bootstrap content side effects --- src/content/index.ts | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/content/index.ts b/src/content/index.ts index a5f1eb2..cb0ff5c 100644 --- a/src/content/index.ts +++ b/src/content/index.ts @@ -1,21 +1 @@ -const MARKET_ORIGIN = "https://xingtu.cn"; -const MARKET_PATH_PREFIX = "/ad/creator/market"; - -function isMarketPage(locationUrl: URL): boolean { - return ( - locationUrl.origin === MARKET_ORIGIN && - locationUrl.pathname.startsWith(MARKET_PATH_PREFIX) - ); -} - -function bootstrap(): void { - const locationUrl = new URL(window.location.href); - - if (!isMarketPage(locationUrl)) { - return; - } - - console.debug("[star-chart-search-enhancer] content script bootstrapped"); -} - -bootstrap(); +export {};