re-add opera

This commit is contained in:
David Ralph
2019-10-20 15:39:12 +01:00
parent df630e953a
commit c7e19aad03
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +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') });
});
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') });
});

14
manifest/opera.json Normal file
View File

@@ -0,0 +1,14 @@
{
"manifest_version": 2,
"name": "Mue",
"version": "0.6",
"browser_action": {
"default_icon": "./android-chrome-512x512.png"
},
"background": {
"scripts": ["./background-opera.js"]
},
"permissions": [
"tabs"
]
}