summaryrefslogtreecommitdiff
path: root/fig-frontend-client/extension
diff options
context:
space:
mode:
Diffstat (limited to 'fig-frontend-client/extension')
-rw-r--r--fig-frontend-client/extension/background.js23
-rw-r--r--fig-frontend-client/extension/main.css0
-rw-r--r--fig-frontend-client/extension/manifest.dhall30
3 files changed, 0 insertions, 53 deletions
diff --git a/fig-frontend-client/extension/background.js b/fig-frontend-client/extension/background.js
deleted file mode 100644
index a0f4c91..0000000
--- a/fig-frontend-client/extension/background.js
+++ /dev/null
@@ -1,23 +0,0 @@
-/* Retrieve any previously set cookie and send to content script */
-
-function getActiveTab() {
- return browser.tabs.query({active: true, currentWindow: true});
-}
-
-function cookieUpdate() {
- getActiveTab().then((tabs) => {
- // get any previously set cookie for the current tab
- let gettingCookies = browser.cookies.get({
- url: tabs[0].url,
- name: "name"
- });
- gettingCookies.then((cookie) => {
- browser.tabs.sendMessage(tabs[0].id, cookie.value);
- });
- });
-}
-
-// update when the tab is updated
-browser.tabs.onUpdated.addListener(cookieUpdate);
-// update when the tab is activated
-browser.tabs.onActivated.addListener(cookieUpdate);
diff --git a/fig-frontend-client/extension/main.css b/fig-frontend-client/extension/main.css
deleted file mode 100644
index e69de29..0000000
--- a/fig-frontend-client/extension/main.css
+++ /dev/null
diff --git a/fig-frontend-client/extension/manifest.dhall b/fig-frontend-client/extension/manifest.dhall
deleted file mode 100644
index cf9e7a1..0000000
--- a/fig-frontend-client/extension/manifest.dhall
+++ /dev/null
@@ -1,30 +0,0 @@
-{ manifest_version = 2
-, name = "computerspotting"
-, version = "1.0"
-, description = "spot the computer"
-, icons =
- [ { mapKey = "48", mapValue = "assets/mrgreen.png" }
- ]
-, web_accessible_resources =
- [ "mrgreen.png"
- , "mrblue.png"
- ]
-, permissions =
- [ "webRequest"
- , "webRequestBlocking"
- , "tabs"
- , "cookies"
- , "*://*.twitch.tv/*"
- , "*://api.colonq.computer/*"
- ]
-, background =
- { scripts = ["background.js"]
- }
-, content_scripts =
- [ { matches = ["*://*.twitch.tv/*"]
- , js = ["config.js", "main.js"]
- , css = ["main.css"]
- , run_at = "document_end"
- }
- ]
-} \ No newline at end of file