Upload the main files

This commit is contained in:
Maxwell 2022-08-19 08:49:30 +10:00 committed by GitHub
parent 0c281c6975
commit 66a7e98a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 0 deletions

8
main.js Normal file
View File

@ -0,0 +1,8 @@
console.log("The extension is up and running");
var images = document.getElementsByTagName('img')
for (elt of images){
elt.src = `${browser.runtime.getURL("midnight.gif")}`
elt.alt = 'an alt text'
}

19
manifest.json Normal file
View File

@ -0,0 +1,19 @@
{
"manifest_version":2,
"version":"0.0.1",
"name":"Midnightify",
"icons": {
"48": "midnight-icon.gif",
"96": "midnight-icon.gif"
},
"content_scripts":[
{
"matches":["<all_urls>"],
"js":["main.js"]
}
],
"web_accessible_resources": [
"midnight.gif"
]
}

BIN
midnight-icon.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
midnight-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
midnight.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB