chore: bootstrap mv3 extension project

This commit is contained in:
2026-04-20 19:50:05 +08:00
parent b04d018840
commit 74a2eca0ac
7 changed files with 3334 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
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();