diff --git a/package.json b/package.json
index 45ec998..6cc1458 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,9 @@
"build": "vue-tsc -b && vite build && cp -r public/* dist/",
"build:watch": "vite build --watch",
"preview": "vite preview",
- "lint": "biome format --write ."
+ "lint": "biome format --write .",
+ "quality-check": "biome ci",
+ "qc": "npm run quality-check"
},
"dependencies": {
"@tailwindcss/vite": "^4.1.7",
diff --git a/public/background.js b/public/background.js
new file mode 100644
index 0000000..ec6b2a2
--- /dev/null
+++ b/public/background.js
@@ -0,0 +1,13 @@
+console.log("background.js loaded 55555")
+
+chrome.webRequest.onBeforeRequest.addListener(
+ function(details) {
+ console.log("onBeforeRequest MAIN_FRAME:", details.url, details.type, details.frameId, details.tabId)
+ if (details.url === "https://monster-siren.hypergryph.com/manifest.json" && details.type === "other" && details.frameId === 0) {
+ console.log("onBeforeRequest - REDIRECTING MAIN_FRAME")
+ chrome.tabs.create({ url: chrome.runtime.getURL("index.html") })
+ chrome.tabs.remove(details.tabId)
+ }
+ },
+ { urls: ["https://monster-siren.hypergryph.com/manifest.json"] }
+)
\ No newline at end of file
diff --git a/public/content.js b/public/content.js
index 4f26e78..e69de29 100644
--- a/public/content.js
+++ b/public/content.js
@@ -1,3 +0,0 @@
-// redirect to extension's index.html
-const extensonUrl = chrome.extension.getURL('index.html')
-const url = window.location.href
diff --git a/public/manifest.json b/public/manifest.json
index 6bdff86..1d6fe3b 100644
--- a/public/manifest.json
+++ b/public/manifest.json
@@ -10,10 +10,14 @@
"run_at": "document_end"
}
],
- "permissions": ["webRequest", "webRequestBlocking"],
+ "host_permissions": ["https://monster-siren.hypergryph.com/*"],
"icons": {
"16": "vite.svg",
"48": "vite.svg",
"128": "vite.svg"
- }
-}
+ },
+ "background": {
+ "service_worker": "background.js"
+ },
+ "permissions": ["tabs", "webRequest"]
+}
\ No newline at end of file
diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue
deleted file mode 100644
index b58e52b..0000000
--- a/src/components/HelloWorld.vue
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
- Edit
-
- Check out
- create-vue, the official Vue + Vite starter
-
- Learn more about IDE Support for Vue in the
- Vue Docs Scaling up Guide.
- Click on the Vite and Vue logos to learn more{{ msg }}
-
- components/HelloWorld.vue
to test HMR
-