1
0
Fork 0

Generate basic extension files via create-web-ext tool

This commit is contained in:
Krzysztof Sikorski 2021-11-07 02:37:18 +01:00
parent bbcd4e3142
commit f3ddb93c19
Signed by: krzysztof-sikorski
GPG Key ID: 4EB564BD08FE8476
7 changed files with 42 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/web-ext-artifacts

1
background_script.js Normal file
View File

@ -0,0 +1 @@
// Put all the javascript code here, that you want to execute in background.

BIN
icons/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

25
manifest.json Normal file
View File

@ -0,0 +1,25 @@
{
"author": "Krzysztof Andrzej Sikorski",
"background": {
"scripts": [
"background_script.js"
]
},
"browser_specific_settings": {
"gecko": {
"id": "tracker@nexus-archive.zerozero.pl"
}
},
"description": "A helper extension to automatically submit network traffic to the \"Nexus Archive\" website.",
"homepage_url": "https://nexus-archive.zerozero.pl",
"icons": {
"64": "icons/icon.png"
},
"manifest_version": 2,
"name": "Nexus Archive Tracker",
"options_ui": {
"page": "options/index.html"
},
"short_name": "NA Tracker",
"version": "0.0.1"
}

11
options/index.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="style.css" rel="stylesheet" />
</head>
<body>
<h1 id="myHeading">My content</h1>
<script src="script.js"></script>
</body>
</html>

1
options/script.js Normal file
View File

@ -0,0 +1 @@
document.getElementById('myHeading').style.color = 'red'

3
options/style.css Normal file
View File

@ -0,0 +1,3 @@
h1 {
font-style: italic;
}