diff --git a/README.md b/README.md index 48cfe553..73828561 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,24 @@ Development: Read the [Development](#development) section ### Opera Development: Read the [Development](#development) section ### Firefox - + -Link: https://addons.mozilla.org/en-US/firefox/addon/mue/ +Link: https://addons.mozilla.org/firefox/addon/mue/ Development: Read the [Development](#development) section ### Development +
Starting
+
    +
  1. git clone https://github.com/ohlookitsderpy/Mue (If you don't have Git just go to Clone or + download and click Download ZIP) +
  2. yarn (or npm install) +
  3. yarn run sass-watch (or npm run sass-watch) +
  4. Start developing! (See the sections below for how to set it up with your browser) +
Chrome (Click to expand)
    -
  1. git clone https://github.com/ohlookitsderpy/Mue (If you don't have Git just go to Clone or download and click Download ZIP)
  2. Rename manifest-chrome.json to manifest.json
  3. Visit chrome://extensions in Chrome
  4. Click Load unpacked (Make sure Developer Mode is on) @@ -40,7 +47,6 @@ Development: Read the [Development](#development) section
    Opera (Click to expand)
      -
    1. git clone https://github.com/ohlookitsderpy/Mue (If you don't have Git just go to Clone or download and click Download ZIP)
    2. Rename manifest-opera.json to manifest.json
    3. Visit about://extensions in Opera
    4. Click Load unpacked extension... (Make sure Developer Mode is on) @@ -49,15 +55,23 @@ Development: Read the [Development](#development) section
    Firefox (Click to expand) - Note: I'm currently trying to find a better method to do this, but this works for now. Also in testing and may not work properly! + Note: I'm currently trying to find a better method to do this, but this works for now. Also in testing and may not + work properly!
      -
    1. git clone https://github.com/ohlookitsderpy/Mue (If you don't have Git just go to Clone or download and click Download ZIP)
    2. Rename manifest-firefox.json to manifest.json
    3. Visit about:debugging#addons in Firefox
    4. Click Load Temporary Add-on
    5. Go to the directory containing Mue and click on the manifest.json
    6. Enjoy your new tab!
    +
    + Other (Click to expand) + Note: To get the full new tab experience, just set your browser to open the index.html on startup and tab open +
      +
    1. Open the index.html in your browser +
    2. Enjoy your new tab! +
    +
    ## Screenshot *Will be updated if needed* diff --git a/src/assets/js/background-opera.js b/src/assets/js/background-opera.js index bc9bc2aa..df7f4478 100644 --- a/src/assets/js/background-opera.js +++ b/src/assets/js/background-opera.js @@ -1,13 +1,9 @@ // Original code sourced from https://forums.opera.com/topic/25046/how-to-disable-completely-the-speed-dial/14 chrome.tabs.onCreated.addListener((tab) => { - if (tab.status === "complete" && tab.url === "chrome://startpage/") { - chrome.tabs.update(tab.id, { url: chrome.extension.getURL("index.html") }); - } + if (tab.status === "complete" && tab.url === "chrome://startpage/") chrome.tabs.update(tab.id, { url: chrome.extension.getURL("index.html") }); }); -chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { - if (changeInfo.status === "complete" && tab.url === "chrome://startpage/") { - chrome.tabs.update(tabId, { url: chrome.extension.getURL("index.html") }); - } +chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { + if (changeInfo.status === "complete" && tab.url === "chrome://startpage/") chrome.tabs.update(tabId, { url: chrome.extension.getURL("index.html") }); }); diff --git a/src/assets/js/index.js b/src/assets/js/index.js index b2293e88..547045f4 100644 --- a/src/assets/js/index.js +++ b/src/assets/js/index.js @@ -8,7 +8,7 @@ ██ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ -██ Copyright 2018 Dave R (ohlookitsderpy) ██ +██ Copyright 2018-2019 David Ralph (ohlookitsderpy) ██ ██ Licensed under MIT ██ ██ GitHub: https://github.com/ohlookitsderpy/Mue ██ ██ ██ @@ -192,7 +192,7 @@ function setRandomQuote () { 'George Addair', 'Winston Churchill', 'Paulo Coelho', - 'Brian Tracy', + 'Brian Tracy', 'Chantal Sutherland', 'Les Brown', 'Bob Riley', @@ -200,7 +200,7 @@ function setRandomQuote () { 'Napoleon Hill', 'Jim Rohn', 'Serena Williams', - 'Sheryl Sandberg', + 'Sheryl Sandberg', 'Reese Witherspoon', 'Hazrat Inayat Khan', 'Albert Einstein' @@ -332,4 +332,4 @@ function spMessageSet() { else if (hour > 20) time = 'Buenas Noches'; // If it's after 6pm, set the time string to "Good afternoon" setHTMLContent('.greeting', time); // Write the string contents to the HTML -} +} \ No newline at end of file