Repo setup and build step configuration

This commit is contained in:
mrjvs
2023-12-24 00:37:41 +01:00
parent 9c8750e793
commit 286f3e3115
28 changed files with 993 additions and 0 deletions

BIN
src/assets/icons/16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

View File

@@ -0,0 +1,5 @@
{
"background": {
"service_worker": "index.js"
}
}

View File

@@ -0,0 +1,21 @@
{
"manifest_version": 3,
"name": "movie-web extension",
"version": "0.1",
"description": "Allows for sources to work without a proxy",
"icons": {
"16": "assets/icons/16.png"
},
"action": {
"default_title": "movie-web extension",
"default_popup": "popup.html"
},
"permissions": ["storage", "tabs", "cookies", "scripting"],
"host_permissions": ["<all_urls>"],
"web_accessible_resources": [
{
"resources": ["*.js.map"],
"matches": ["<all_urls>"]
}
]
}

View File

@@ -0,0 +1,10 @@
{
"background": {
"scripts": ["index.js"]
},
"browser_specific_settings": {
"gecko": {
"id": "extension-firefox@movie-web.app"
}
}
}

1
src/index.ts Normal file
View File

@@ -0,0 +1 @@
console.log("testing");

9
src/popup.html Normal file
View File

@@ -0,0 +1,9 @@
<html>
<head>
<title>movie-web extension</title>
<link rel="stylesheet" href="./popup/styles.css" />
</head>
<body>
<script type="module" src="./popup/index.ts"></script>
</body>
</html>

1
src/popup/index.ts Normal file
View File

@@ -0,0 +1 @@
console.log("popup js")

3
src/popup/styles.css Normal file
View File

@@ -0,0 +1,3 @@
.test {
color: blue
}