mirror of
https://github.com/mue/mue.git
synced 2026-07-26 18:21:27 +02:00
re-add opera
This commit is contained in:
9
manifest/background-opera.js
Normal file
9
manifest/background-opera.js
Normal 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
14
manifest/opera.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user