diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..024d443 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,8 @@ +# Contributing to Wii Shop Channel Music + +The Wii Shop Music extension is intended to be a fun and simple browser extension. With that in mind, there are two main rules for contributing code or submitting issues: + +1. **No major new features.** I have no plans or desire to implement new major features, besides those already listed on the [issues page](https://github.com/corbindavenport/wii-shop-extension/issues). +2. **No new music.** The extension already has 10 tracks included, and that will probably be it. The [ability to import custom music](https://github.com/corbindavenport/wii-shop-extension/issues/22) may be implemented in the future. + +Future development on the extension will mainly focus on bug fixes, shopping website additions, and any changes required to keep up with evolving browser standards. \ No newline at end of file diff --git a/README.md b/README.md index cee9bc6..ef556d8 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![image](https://user-images.githubusercontent.com/3879063/151822369-ac4b1ea6-4c32-4918-a866-4cdf80758e43.png) -This is a browser extension that plays the [Wii Shop Channel theme](https://www.youtube.com/watch?v=yyjUmv1gJEg) in the background when you visit a shopping website. You can also select the music from the 3DS eShop, DSi Shop, Wii Shop Banner/Home, Wii U eShop, and Coconut Mall. +This is a browser extension that plays the [Wii Shop Channel theme](https://www.youtube.com/watch?v=yyjUmv1gJEg) in the background when you visit a shopping website. You can also select the music from the 3DS eShop, DSi Shop, Wii Shop Banner/Home, Wii U eShop, Mii Channel (Wii or 3DS), and Coconut Mall. 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. diff --git a/js/background.js b/js/background.js index fffe944..15bdf96 100644 --- a/js/background.js +++ b/js/background.js @@ -9,7 +9,7 @@ if ('mediaSession' in navigator) { }) } -// Creat audio object +// Create audio object var themeAudio = new Audio() themeAudio.volume = 0.5 themeAudio.loop = true diff --git a/js/site-list.js b/js/site-list.js index ddd9b53..724b86f 100644 --- a/js/site-list.js +++ b/js/site-list.js @@ -1,19 +1,22 @@ const siteList = [ 'aliexpress.com', + 'allegro.pl', 'amazon.ca', 'amazon.cn', 'amazon.co.jp', 'amazon.co.uk', + 'amazon.com', 'amazon.com.au', 'amazon.com.br', 'amazon.com.mx', - 'amazon.com', 'amazon.de', 'amazon.es', 'amazon.fr', 'amazon.in', 'amazon.it', 'amazon.nl', + 'amazon.pl', + 'amazon.sg', 'azerty.nl', 'bauhaus.dk', 'bestbuy.com', @@ -26,19 +29,22 @@ const siteList = [ 'boozt.com', 'buy123.com.tw', 'canadacomputers.com', + 'castorama.pl', 'cdon.com', 'coolblue.nl', 'coop.dk', + 'decathlon.pl', + 'dekudeals.com', 'ebay.at', 'ebay.be', 'ebay.ca', 'ebay.ch', 'ebay.co.uk', + 'ebay.com', 'ebay.com.au', 'ebay.com.cn', 'ebay.com.my', 'ebay.com.sg', - 'ebay.com', 'ebay.de', 'ebay.fr', 'ebay.it', @@ -46,9 +52,13 @@ const siteList = [ 'ebay.ph', 'elgiganten.dk', 'emag.ro', + 'empik.com', + 'eobuwie.com.pl', 'eprice.com.tw', + 'es.aliexpress.com', 'etmall.com.tw', 'etsy.com', + 'euro.com.pl', 'feebee.com.tw', 'findprice.com.tw', 'flipkart.com', @@ -62,29 +72,59 @@ const siteList = [ 'hm.com', 'ikea.com', 'ilva.dk', + 'invadeit.co.th', + 'jib.co.th', + 'jula.pl', 'jysk.dk', + 'komputronik.pl', + 'lazada.co.th', 'lttstore.com', 'macys.com', 'marktplaats.nl', 'matas.dk', + 'mediaexpert.pl', 'mediamarkt.nl', + 'mercadolibre.com.ar', + 'mercadolibre.com.bo', + 'mercadolibre.com.cl', + 'mercadolibre.com.co', + 'mercadolibre.com.cr', + 'mercadolibre.com.do', + 'mercadolibre.com.ec', + 'mercadolibre.com.gt', + 'mercadolibre.com.hn', + 'mercadolibre.com.mx', + 'mercadolibre.com.ni', + 'mercadolibre.com.pa', + 'mercadolibre.com.py', + 'mercadolibre.com.pe', + 'mercadolibre.com.sv', + 'mercadolibre.com.uy', + 'mercadolibre.com.ve', + 'mediamarkt.pl', 'microcenter.com', + 'morele.net', 'momoshop.com.tw', 'nemlig.com', + 'neonet.pl', 'newegg.com', 'olx.ro', + 'olx.pl', 'overstock.com', 'pchome.com.tw', 'pcone.com.tw', 'pricerunner.co.uk', 'pricerunner.dk', 'qvc.com', - 'rakuten.com.tw', 'rakuten.com', + 'rakuten.com.tw', + 'reserved.com', + 'rossmann.pl', 'ruten.com.tw', 'saxo.com', 'saxo.dk', 'shop.cosmed.com.tw', + 'shopee.co.th', 'shopee.tw', 'shopping.google.com', 'silvan.dk', @@ -94,29 +134,56 @@ const siteList = [ 'smile.amazon.co.jp', 'smile.amazon.co.uk', 'smile.amazon.co.uk', + 'smile.amazon.com', 'smile.amazon.com.au', 'smile.amazon.com.br', 'smile.amazon.com.mx', - 'smile.amazon.com', 'smile.amazon.de', 'smile.amazon.es', 'smile.amazon.fr', 'smile.amazon.in', 'smile.amazon.it', 'smile.amazon.nl', + 'smyk.com', 'staples.ca', 'staples.com', 'swappa.com', 'system76.com', + 'taniaksiazka.pl', 'target.com', 'tw.bid.yahoo.com', 'tw.buy.yahoo.com', 'tw.mail.yahoo.com', 'u-mall.com.tw', + 'ultima.pl', 'walmart.com', 'wish.com', + 'x-kom.pl', 'xl-byg.dk', + 'vinted.fr', + 'leboncoin.fr', + 'omakebooks.com', + 'carrefour.fr', + 'instant-gaming.com', + 'backmarket.fr', + 'steampowered.com', + 'fnac.com', + 'cdiscount.com', + 'ldlc.com', 'zalando.dk', 'zalando.nl', + 'materiel.net', + 'darty.com', + 'boulanger.com', + 'e.leclerc', + 'rueducommerce.fr', + 'gog.com', + 'tesco.com', + 'waitrose.com', + 'sainsburys.co.uk', + 'morrisons.com', + 'coop.co.uk', + 'zalando.pl', + 'zara.com', 'zehrs.ca' ] diff --git a/music/3ds-eshop-theme.ogg b/music/3ds-eshop-theme.ogg index 0233a3c..1aa87fd 100644 Binary files a/music/3ds-eshop-theme.ogg and b/music/3ds-eshop-theme.ogg differ diff --git a/music/dsi-shop-theme.ogg b/music/dsi-shop-theme.ogg index f6a911b..db60da3 100644 Binary files a/music/dsi-shop-theme.ogg and b/music/dsi-shop-theme.ogg differ diff --git a/music/mii-channel-3ds.ogg b/music/mii-channel-3ds.ogg new file mode 100644 index 0000000..55c22fe Binary files /dev/null and b/music/mii-channel-3ds.ogg differ diff --git a/music/mii-channel-wii.ogg b/music/mii-channel-wii.ogg new file mode 100644 index 0000000..2f26d57 Binary files /dev/null and b/music/mii-channel-wii.ogg differ diff --git a/music/oot-shop.ogg b/music/oot-shop.ogg new file mode 100644 index 0000000..543f4c6 Binary files /dev/null and b/music/oot-shop.ogg differ diff --git a/music/sims-buy-mode.ogg b/music/sims-buy-mode.ogg new file mode 100644 index 0000000..024f70e Binary files /dev/null and b/music/sims-buy-mode.ogg differ diff --git a/popup.html b/popup.html index bef3631..405b44d 100644 --- a/popup.html +++ b/popup.html @@ -35,10 +35,14 @@
More stuff
@@ -51,4 +55,4 @@ - \ No newline at end of file +