Generate basic extension files via create-web-ext tool
Krzysztof Sikorski

Krzysztof Sikorski commited on 2021-11-07 02:37:18
Showing 7 changed files, with 42 additions and 0 deletions.

... ...
@@ -0,0 +1 @@
1
+/web-ext-artifacts
... ...
@@ -0,0 +1 @@
1
+// Put all the javascript code here, that you want to execute in background.
... ...
@@ -0,0 +1,25 @@
1
+{
2
+  "author": "Krzysztof Andrzej Sikorski",
3
+  "background": {
4
+    "scripts": [
5
+      "background_script.js"
6
+    ]
7
+  },
8
+  "browser_specific_settings": {
9
+    "gecko": {
10
+      "id": "tracker@nexus-archive.zerozero.pl"
11
+    }
12
+  },
13
+  "description": "A helper extension to automatically submit network traffic to the \"Nexus Archive\" website.",
14
+  "homepage_url": "https://nexus-archive.zerozero.pl",
15
+  "icons": {
16
+    "64": "icons/icon.png"
17
+  },
18
+  "manifest_version": 2,
19
+  "name": "Nexus Archive Tracker",
20
+  "options_ui": {
21
+    "page": "options/index.html"
22
+  },
23
+  "short_name": "NA Tracker",
24
+  "version": "0.0.1"
25
+}
... ...
@@ -0,0 +1,11 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+  <head>
4
+    <meta charset="UTF-8">
5
+    <link href="style.css" rel="stylesheet" />
6
+  </head>
7
+  <body>
8
+    <h1 id="myHeading">My content</h1>
9
+    <script src="script.js"></script>
10
+  </body>
11
+</html>
... ...
@@ -0,0 +1 @@
1
+document.getElementById('myHeading').style.color = 'red'
... ...
@@ -0,0 +1,3 @@
1
+h1 {
2
+  font-style: italic;
3
+}
0 4