some js edits as well

This commit is contained in:
David Ralph 2019-01-19 13:55:24 +00:00
parent e324a07144
commit 22995df121
3 changed files with 27 additions and 17 deletions

View File

@ -20,17 +20,24 @@ Development: Read the [Development](#development) section
### Opera
Development: Read the [Development](#development) section
### Firefox
<a href='https://addons.mozilla.org/en-US/firefox/addon/mue/'><img src='https://vgy.me/REe6qz.png' target='_blank'></a>
<a href='https://addons.mozilla.org/firefox/addon/mue/'><img src='https://vgy.me/REe6qz.png' target='_blank'></a>
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
<h5>Starting</h5>
<ol>
<li> <code>git clone https://github.com/ohlookitsderpy/Mue</code> (If you don't have Git just go to <b>Clone or
download</b> and click <b>Download ZIP</b>)
<li> <code>yarn</code> (or <code>npm install</code>)
<li> <code>yarn run sass-watch</code> (or <code>npm run sass-watch</code>)
<li>Start developing! (See the sections below for how to set it up with your browser)
</ol>
<details>
<summary><b>Chrome</b> (Click to expand)</summary>
<ol>
<li> <code>git clone https://github.com/ohlookitsderpy/Mue</code> (If you don't have Git just go to <b>Clone or download</b> and click <b>Download ZIP</b>)
<li> Rename <code>manifest-chrome.json</code> to <code>manifest.json</code>
<li> Visit <code>chrome://extensions</code> in Chrome
<li> Click <b>Load unpacked</b> (Make sure <b>Developer Mode</b> is on)
@ -40,7 +47,6 @@ Development: Read the [Development](#development) section
<details>
<summary><b>Opera</b> (Click to expand)</summary>
<ol>
<li> <code>git clone https://github.com/ohlookitsderpy/Mue</code> (If you don't have Git just go to <b>Clone or download</b> and click <b>Download ZIP</b>)
<li> Rename <code>manifest-opera.json</code> to <code>manifest.json</code>
<li> Visit <code>about://extensions</code> in Opera
<li> Click <b>Load unpacked extension...</b> (Make sure <b>Developer Mode</b> is on)
@ -49,15 +55,23 @@ Development: Read the [Development](#development) section
</details>
<details>
<summary><b>Firefox</b> (Click to expand)</summary>
<i>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!</i>
<i>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!</i>
<ol>
<li> <code>git clone https://github.com/ohlookitsderpy/Mue</code> (If you don't have Git just go to <b>Clone or download</b> and click <b>Download ZIP</b>)
<li> Rename <code>manifest-firefox.json</code> to <code>manifest.json</code>
<li> Visit <code>about:debugging#addons</code> in Firefox
<li> Click <b>Load Temporary Add-on</b>
<li> Go to the directory containing Mue and click on the <b>manifest.json</b>
<li> Enjoy your new tab!
</details>
<details>
<summary><b>Other</b> (Click to expand)</summary>
<i>Note: To get the full new tab experience, just set your browser to open the index.html on startup and tab open
<ol>
<li> Open the index.html in your browser
<li> Enjoy your new tab!
</ol>
</details>
## Screenshot
*Will be updated if needed*

View File

@ -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") });
});

View File

@ -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
}
}