mirror of
https://github.com/FranP-code/wii-shop-extension.git
synced 2025-10-12 23:52:52 +00:00
Initial version with Firefox download
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
*.zip
|
||||
11
README.md
11
README.md
@@ -1,2 +1,9 @@
|
||||
# wii-shop-extension
|
||||
Browser extension that plays the Wii Shop theme when you visit shopping websites.
|
||||
# Wii Shop Extension
|
||||
|
||||
[](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
BIN
img/icon128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
BIN
img/icon48.png
Normal file
BIN
img/icon48.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
42
js/background.js
Normal file
42
js/background.js
Normal file
File diff suppressed because one or more lines are too long
45
js/site-list.js
Normal file
45
js/site-list.js
Normal 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
22
manifest.json
Normal 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
BIN
wii-shop-theme.ogg
Normal file
Binary file not shown.
Reference in New Issue
Block a user