1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-17 03:51:13 +02:00

remove tab permission.

This commit is contained in:
Kushagra Gour
2016-05-13 02:30:25 +05:30
parent 1510197aba
commit c1ef106469
2 changed files with 6 additions and 24 deletions

View File

@@ -1,22 +1,3 @@
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)
});
chrome.browserAction.onClicked.addListener(function(activeTab) { chrome.browserAction.onClicked.addListener(function(activeTab) {
chrome.tabs.create({ url: chrome.extension.getURL('index.html'), selected: true }); chrome.tabs.create({ url: chrome.extension.getURL('index.html'), selected: true });
}); });

View File

@@ -5,18 +5,19 @@
"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"
},
"browser_action": { "browser_action": {
"default_title": "Start Web Maker", "default_title": "Web Maker",
"default_icon": "icon-16.png" "default_icon": "icon-16.png"
}, },
"background": { "background": {
"scripts": [ "eventPage.js" ], "scripts": [ "eventPage.js" ],
"persistent": false "persistent": false
}, },
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"icons": { "icons": {
"16": "icon-16.png", "16": "icon-16.png",
"48": "icon-48.png" "48": "icon-48.png"