aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
authorIlya Sukhar2010-12-14 01:40:14 -0800
committerIlya Sukhar2010-12-14 01:40:14 -0800
commit3173156ee2e674069db6769936e9f767869899d9 (patch)
treefe32f471cc16a7b74fd6ed899527fab48b74e6d1 /background_page.html
parentbb478223a94f4daf02043926651ce2f560904f0c (diff)
downloadvimium-3173156ee2e674069db6769936e9f767869899d9.tar.bz2
Added default exclude URLs. This is a huge pain point for users and it just makes sense at this point to provide some defaults.
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/background_page.html b/background_page.html
index 9ed81509..ad15c2be 100644
--- a/background_page.html
+++ b/background_page.html
@@ -28,7 +28,9 @@
linkHintCharacters: "sadfjklewcmpgh",
userDefinedLinkHintCss:
".vimiumHintMarker {\n\n}\n" +
- ".vimiumHintMarker > .matchingCharacter {\n\n}"
+ ".vimiumHintMarker > .matchingCharacter {\n\n}",
+ excludedUrls: "http*://mail.google.com/*\n" +
+ "http*://www.google.com/reader/*\n"
};
// This is the base internal link hints CSS. It's combined with the userDefinedLinkHintCss before
@@ -136,7 +138,7 @@
*/
function isEnabledForUrl(request) {
// excludedUrls are stored as a series of URL expressions separated by newlines.
- var excludedUrls = (localStorage["excludedUrls"] || "").split("\n");
+ var excludedUrls = (localStorage["excludedUrls"] || defaultSettings.excludedUrls).split("\n");
var isEnabled = true;
for (var i = 0; i < excludedUrls.length; i++) {
// The user can add "*" to the URL which means ".*"