Initial version with Firefox download

This commit is contained in:
Corbin Davenport
2020-09-04 00:53:28 -04:00
parent 5f8653dcce
commit f8711e39e7
8 changed files with 119 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.zip

View File

@@ -1,2 +1,9 @@
# wii-shop-extension
Browser extension that plays the Wii Shop theme when you visit shopping websites.
# Wii Shop Extension
[![Download for Firefox](https://corbin.io/img/firefox-button.png)](https://addons.mozilla.org/en-US/firefox/addon/wii-shop-channel/)
This is a browser extension that plays the [Wii Shop Channel theme](https://www.youtube.com/watch?v=yyjUmv1gJEg&t=1s) in the background when you visit a shopping website. The list of detectable websites is in `js/site-list.js`.
The extension only requires two permissions: [Tabs](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs), to check the URL of the currently-active tab, and [Notifications](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Notifications), to show a message after the extension is installed.
**This extension is not developed by, or affiliated with, Nintendo in any way.**

BIN
img/icon128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
img/icon48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

42
js/background.js Normal file

File diff suppressed because one or more lines are too long

45
js/site-list.js Normal file
View File

@@ -0,0 +1,45 @@
const siteList = [
'amazon.com',
'amazon.com.au',
'amazon.com.br',
'amazon.ca',
'amazon.cn',
'amazon.fr',
'amazon.de',
'amazon.in',
'amazon.it',
'amazon.co.jp',
'amazon.com.mx',
'amazon.nl',
'amazon.es',
'amazon.co.uk',
'bestbuy.com',
'bhphotovideo.com',
'ebay.com',
'ebay.com.au',
'ebay.at',
'ebay.be',
'ebay.ca',
'ebay.com.cn',
'ebay.fr',
'ebay.de',
'ebay.it',
'ebay.com.my',
'ebay.nl',
'ebay.ph',
'ebay.com.sg',
'ebay.ch',
'ebay.co.uk',
'etsy.com',
'walmart.com',
'maycs.com',
'swappa.com',
'target.com',
'aliexpress.com',
'newegg.com',
'overstock.com',
'gearbest.com',
'flipkart.com',
'qvc.com',
'shopping.google.com'
]

22
manifest.json Normal file
View File

@@ -0,0 +1,22 @@
{
"manifest_version": 2,
"name": "Wii Shop Channel Music",
"version": "1.0",
"author": "Corbin Davenport",
"description": "Plays the Wii Shop theme when you visit shopping websites.",
"homepage_url": "https://github.com/corbindavenport/wii-shop-extension",
"permissions": [
"tabs",
"notifications"
],
"background": {
"scripts": [
"js/site-list.js",
"js/background.js"
]
},
"icons": {
"48": "img/icon48.png",
"128": "img/icon128.png"
}
}

BIN
wii-shop-theme.ogg Normal file

Binary file not shown.