From 801a20fb28cbd13b057668d495cfe54c645c651b Mon Sep 17 00:00:00 2001 From: Daniel MacDougall Date: Wed, 28 Mar 2012 03:11:27 -0700 Subject: Add ability to exclude URLs from browser button --- background_page.html | 6 ++++++ manifest.json | 3 ++- popup.html | 27 +++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 popup.html diff --git a/background_page.html b/background_page.html index 881024c3..b80f49b4 100644 --- a/background_page.html +++ b/background_page.html @@ -113,6 +113,12 @@ return { isEnabledForUrl: isEnabled }; } + function addExcludedUrl(url) { + var excludedUrls = settings.get("excludedUrls"); + excludedUrls += "\n" + url; + settings.set("excludedUrls", excludedUrls); + } + function saveHelpDialogSettings(request) { settings.set("helpDialog_showAdvancedCommands", request.showAdvancedCommands); } diff --git a/manifest.json b/manifest.json index 31b9e976..72631a94 100644 --- a/manifest.json +++ b/manifest.json @@ -31,6 +31,7 @@ } ], "browser_action": { - "default_icon": "icons/icon48disabled.png" + "default_icon": "icons/icon48disabled.png", + "popup": "popup.html" } } diff --git a/popup.html b/popup.html new file mode 100644 index 00000000..e3feac44 --- /dev/null +++ b/popup.html @@ -0,0 +1,27 @@ + + +
+ + +
+ + + -- cgit v1.2.3