diff --git a/main.html b/main.html
deleted file mode 100644
index f4fc26f..0000000
--- a/main.html
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- Переадресация Корпоративного портала
-
-
-
- Переадресация Корпоративного портала
-
-
-
-
-
-
-
-
-
-
-
diff --git a/manifest.json b/manifest.json
index 3f99085..3471b6e 100644
--- a/manifest.json
+++ b/manifest.json
@@ -14,7 +14,7 @@
"service_worker": "/background.js"
},
"action": {
- "default_popup": "/main.html"
+ "default_popup": "/public/index.html"
},
"declarative_net_request": {
"rule_resources": [
@@ -24,5 +24,8 @@
"path": "/rules.json"
}
]
+ },
+ "content_security_policy": {
+ "extension_pages": "default-src 'self'; script-src 'self' 'wasm-unsafe-eval'"
}
}
diff --git a/popup.js b/popup.js
deleted file mode 100644
index 9c6491f..0000000
--- a/popup.js
+++ /dev/null
@@ -1,3 +0,0 @@
-document.querySelector('#ru-to-local').onchange = () => chrome.storage.local.set({ redirectMode: 1 })
-document.querySelector('#local-to-ru').onchange = () => chrome.storage.local.set({ redirectMode: 2 })
-document.querySelector('#no-redirect').onchange = () => chrome.storage.local.set({ redirectMode: 3 })
diff --git a/styles.css b/styles.css
deleted file mode 100644
index b2bc7ed..0000000
--- a/styles.css
+++ /dev/null
@@ -1,46 +0,0 @@
-body {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 1rem;
- width: 24rem;
- background-image: linear-gradient(to bottom right, blue, darkblue);
- color: white;
- font-family: Arial, sans-serif;
-}
-
-input[type="radio"] {
- display: none;
-}
-
-h2 {
- margin: 0;
-}
-
-#switch-button {
- display: flex;
- margin-top: 2rem;
- width: fit-content;
- border: solid .0125rem transparent;
- border-radius: 2rem;
- box-shadow:
- 0 max(.25rem, .25vw) max(.5rem, .5vw) max(.1875rem, .1875vw) rgba(0, 0, 0, .15),
- 0 max(.0625rem, .0625vw) max(.1875rem, .1875vw) rgba(0, 0, 0, .3);
- overflow: clip;
-}
-
-#switch-button > * {
- padding: .5rem 1rem;
- background-color: white;
- color: black;
- font-weight: bold;
- opacity: .9;
-}
-
-#switch-button > :hover {
- opacity: 1;
-}
-
-#switch-button > :not(:first-child) {
- border-left: solid .0125rem black;
-}