mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-15 11:06:21 +02:00
Revert "remove tab permission."
This reverts commit c1ef106469
.
Conflicts:
src/eventPage.js
src/manifest.json
This commit is contained in:
@ -4,3 +4,18 @@ chrome.browserAction.onClicked.addListener(function(){
|
|||||||
selected: true
|
selected: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
chrome.tabs.onCreated.addListener(function (tab) {
|
||||||
|
console.log('created', arguments)
|
||||||
|
if (tab.url === 'chrome://newtab/') {
|
||||||
|
chrome.tabs.update(tab.id, {
|
||||||
|
url: chrome.extension.getURL('index.html')
|
||||||
|
}, function callback() {
|
||||||
|
console.log('ho gaya');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
chrome.tabs.onUpdated.addListener(function () {
|
||||||
|
console.log('updated', arguments)
|
||||||
|
});
|
@ -5,17 +5,15 @@
|
|||||||
"description": "Convert new tabs into an offline playground for your web experiments",
|
"description": "Convert new tabs into an offline playground for your web experiments",
|
||||||
"homepage_url": "https://kushagragour.in/lab/web-maker",
|
"homepage_url": "https://kushagragour.in/lab/web-maker",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage"
|
"storage",
|
||||||
|
"tabs"
|
||||||
],
|
],
|
||||||
"chrome_url_overrides" : {
|
|
||||||
"newtab": "index.html"
|
|
||||||
},
|
|
||||||
"options_ui": {
|
"options_ui": {
|
||||||
"page": "options.html",
|
"page": "options.html",
|
||||||
"chrome_style": true
|
"chrome_style": true
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_title": "Web Maker",
|
"default_title": "Start Web Maker",
|
||||||
"default_icon": "icon-16.png"
|
"default_icon": "icon-16.png"
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
|
Reference in New Issue
Block a user