Upload the main files
This commit is contained in:
parent
0c281c6975
commit
66a7e98a19
8
main.js
Normal file
8
main.js
Normal 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
19
manifest.json
Normal 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
BIN
midnight-icon.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
midnight-icon.png
Normal file
BIN
midnight-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 138 KiB |
BIN
midnight.gif
Normal file
BIN
midnight.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 MiB |
Loading…
Reference in New Issue
Block a user