diff --git a/main.js b/main.js new file mode 100644 index 0000000..186453f --- /dev/null +++ b/main.js @@ -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' +} \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..d462510 --- /dev/null +++ b/manifest.json @@ -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":[""], + "js":["main.js"] + } + ], + "web_accessible_resources": [ + "midnight.gif" + ] + } + \ No newline at end of file diff --git a/midnight-icon.gif b/midnight-icon.gif new file mode 100644 index 0000000..ffe23de Binary files /dev/null and b/midnight-icon.gif differ diff --git a/midnight-icon.png b/midnight-icon.png new file mode 100644 index 0000000..c23bd27 Binary files /dev/null and b/midnight-icon.png differ diff --git a/midnight.gif b/midnight.gif new file mode 100644 index 0000000..6f814e3 Binary files /dev/null and b/midnight.gif differ