Changed it to a page_action to only show icon on G+ pages
This commit is contained in:
parent
5c973cb449
commit
82db9b72f0
@ -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") {
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user