diff options
| author | Stephen Blott | 2014-10-22 07:03:18 +0100 |
|---|---|---|
| committer | Stephen Blott | 2014-10-22 07:03:18 +0100 |
| commit | e98f3f678237c1841d9626f17e560b6cb8327dc8 (patch) | |
| tree | 648a55af31c9daff4a2d2416d63f4325dfd12cc3 /background_scripts/settings.coffee | |
| parent | a2e7ed7cda8b691486dad582c900307944ec8863 (diff) | |
| parent | 50ea5ac670e736cebcb9bc1300401fe7aa3835fd (diff) | |
| download | vimium-e98f3f678237c1841d9626f17e560b6cb8327dc8.tar.bz2 | |
Merge pull request #1154 from smblott-github/passkeys-structured
Structured exclusion rules internally, and on the popup and options pages.
Diffstat (limited to 'background_scripts/settings.coffee')
| -rw-r--r-- | background_scripts/settings.coffee | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee index 34d6e879..7150fcba 100644 --- a/background_scripts/settings.coffee +++ b/background_scripts/settings.coffee @@ -35,6 +35,9 @@ root.Settings = Settings = searchEngines: (value) -> root.Settings.parseSearchEngines value + exclusionRules: (value) -> + root.Exclusions.postUpdateHook value + # postUpdateHooks convenience wrapper performPostUpdateHook: (key, value) -> @postUpdateHooks[key] value if @postUpdateHooks[key] @@ -58,6 +61,7 @@ root.Settings = Settings = # or strings defaults: scrollStepSize: 60 + keyMappings: "# Insert your prefered key mappings here." linkHintCharacters: "sadfjklewcmpgh" linkHintNumbers: "0123456789" filterLinkHints: false @@ -81,14 +85,13 @@ root.Settings = Settings = div > .vimiumHintMarker > .matchingCharacter { } """ - excludedUrls: - """ - # Disable Vimium on Gmail: - http*://mail.google.com/* + # Default exclusion rules. + exclusionRules: + [ + # Disable Vimium on Gmail. + { pattern: "http*://mail.google.com/*", passKeys: "" } + ] - # Use Facebook's own j/k bindings: - http*://www.facebook.com/* jk - """ # NOTE: If a page contains both a single angle-bracket link and a double angle-bracket link, then in # most cases the single bracket link will be "prev/next page" and the double bracket link will be # "first/last page", so we put the single bracket first in the pattern string so that it gets searched |
