mirror of
https://github.com/mue/mue.git
synced 2026-07-17 14:04:09 +02:00
some js edits as well
This commit is contained in:
@@ -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") });
|
||||
});
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user