Skip to content

Commit

Permalink
Merge pull request #2 from WebSnke/v.1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
WebSnke authored May 31, 2023
2 parents 57b677a + 18940ec commit f17adc9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.2",
"version": "1.0.3",
"manifest_version": 2,
"author": "WebSnke",
"name": "Nintendo 3DS Music",
Expand Down
10 changes: 5 additions & 5 deletions pages/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
<form>
<label class="blue" tabindex="0">Settings music</label>
<select id="settings-select" multiple>
<option value="amiibo-settings.mp3" selected>Amiibo - Settings</option>
<option value="amiibo-settings.mp3">Amiibo - Settings</option>
<option value="miiverse-settings.mp3">Miiverse - Settings</option>
<option value="settings-main.mp3">System Settings - Main Theme</option>
<option value="settings-internet.mp3">System Settings - Internet Settings</option>
<option value="settings-internet.mp3" selected>System Settings - Internet Settings</option>
</select>
<label class="orange" tabindex="0">Shopping music</label>
<select id="shopping-select" multiple>
<option value="eShop-alternative.mp3" selected>Nintendo eShop - Alternative</option>
<option value="eShop-alternative.mp3">Nintendo eShop - Alternative</option>
<option value="eShop-main.mp3">Nintendo eShop - Main Theme</option>
<option value="eShop-purchase.mp3">Nintendo <span class="orange">eShop</span> - Software
Purchase</option>
<option value="eShop-wish.mp3">Nintendo eShop - Wish List</option>
<option value="eShop-wish.mp3" selected>Nintendo eShop - Wish List</option>
</select>
<label tabindex="0">Volume</label>
<input id="volume-slider" type="range" min="0" max="100" value="20" step="1">
<input id="volume-slider" type="range" min="0" max="100" value="50" step="1">
</form>
</main>
<footer>
Expand Down
5 changes: 3 additions & 2 deletions scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ let audioSource = {
};

const regex = {
settings: /(duolingo|github|reddit|spotify|tutanota)\.\w{2,3}\/(settings|preferences)/,
shopping: /(?<!\.)(www\.)?(adidas|alibaba|amazon|asos|bestbuy|costco|ebay|etsy|flipkart|idealo|myntra|newegg|nike|overstock|rakuten|sephora|shopify|target|ulta|walmart|zara)\./
settings: /(duolingo|github|reddit|spotify|tutanota)\.\w{2,3}\/(settings|preferences)|about:(?!newtab)/,
shopping: /(?<!\.)(www\.)?(adidas|alibaba|amazon|asos|bestbuy|costco|ebay|etsy|flipkart|idealo|myntra|newegg|nike|overstock|puma|rakuten|sephora|shopify|target|ulta|walmart|zalando|zappos|zara)\./
};

setInterval(() => {
Expand Down Expand Up @@ -88,6 +88,7 @@ browser.runtime.onInstalled.addListener((details) => {
});

audio.src = audioSource.health;
audio.volume = 0.1;
audio.play();
}
});

0 comments on commit f17adc9

Please sign in to comment.