diff options
| author | jez | 2010-12-31 11:18:01 +0800 |
|---|---|---|
| committer | jez | 2010-12-31 11:18:01 +0800 |
| commit | 83be3670b293fa78a8c74d092be9f6c4cdb6d66b (patch) | |
| tree | 175e7768c25543a58f4c89095f4dc942d95673f4 /background_page.html | |
| parent | 489ff3f8f0f7b44817a09472b5b1e2fad46d7632 (diff) | |
| parent | 1fd0a389ffe7460ac1c658227f0627c050153632 (diff) | |
| download | vimium-83be3670b293fa78a8c74d092be9f6c4cdb6d66b.tar.bz2 | |
Merge remote branch 'origin/master' into filter-hints
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/background_page.html b/background_page.html index 8f0cad23..10de4aca 100644 --- a/background_page.html +++ b/background_page.html @@ -20,7 +20,7 @@ // Keys are either literal characters, or "named" - for example <a-b> (alt+b), <left> (the left arrow) or <f12> // This regular expression captures two groups, the first is a named key, the second is the remainder of the string. - var namedKeyRegex = /^(<[amc-].|(?:[amc]-)?[a-z0-9]{2,5}>)(.*)$/; + var namedKeyRegex = /^(<(?:[amc]-.|(?:[amc]-)?[a-z0-9]{2,5})>)(.*)$/; var defaultSettings = { scrollStepSize: 60, @@ -29,7 +29,9 @@ narrowLinkHints: false, 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 @@ -137,7 +139,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 ".*" @@ -551,7 +553,7 @@ // The second key might be a valid command by its self. if (keyToCommandRegistry[splitKey.second]) - newKeyQueue = checkKeyQueue(splitKey.second); + newKeyQueue = checkKeyQueue(splitKey.second, tabId, frameId); else newKeyQueue = (validFirstKeys[splitKey.second] ? splitKey.second : ""); } else { |
