1
0

Changed it to a page_action to only show icon on G+ pages

This commit is contained in:
Markus Birth 2013-06-25 09:36:12 +02:00
parent 5c973cb449
commit 82db9b72f0
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,11 @@
chrome.tabs.onUpdated.addListener(
function(tabId, changeInfo, tab) {
if (tab.url.indexOf('://plus.google.com/') > -1) {
chrome.pageAction.show(tabId);
}
}
);
chrome.extension.onRequest.addListener(
function(request, sender, sendResponse) {
if (request.method == "getBlacklist") {

View File

@ -1,9 +1,10 @@
{
"name": "G+ Blacklist",
"version": "0.1",
"version": "2013.6.24",
"manifest_version": 2,
"description": "Blacklist for Google+",
"browser_action": {
"homepage_url": "https://github.com/mbirth/gplusblacklist",
"page_action": {
"default_title": "Blacklist for Google+",
"default_popup": "popup.html",
"default_icon": "gplusblacklist_48.png"
@ -26,4 +27,4 @@
"64": "gplusblacklist_64.png",
"128": "gplusblacklist_128.png"
}
}
}