aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2018-02-13Make the reload command accept a count.Stephen Blott
Move the `reload` command to the background page and make it accept a count prefix. Fixes #674. Althought the demand for this is low and the use cases limited, it is a very vim-ish extension to the existing command.
2018-02-05Create flash frame Shadow DOM element on demand.Stephen Blott
It looks like we'll be initialising the Vomnibar on demand (see #2939, merged). In this case, we should also initialise the flash frame on demand. This means that *none* of Vimium's UI elements are now created until they are needed.
2018-02-04Merge branch 'gdh1995--hook-to-string'Stephen Blott
This is #2941.
2018-02-04Tweak #2941.Stephen Blott
2018-02-04make the hooked addEventListener looks nativegdh1995
2018-02-04Merge pull request #2939 from smblott-github/disable-preload-vomnibarStephen Blott
Disable pre-loading of Vomnibar iframe.
2018-02-04Remove \I (ignore case) flag for find mode.Stephen Blott
It appears that nobody is using this (and it is broken). So this PR removes this feature. Fixes #2937 (kind of).
2018-02-04Disable pre-loading of Vomnibar iframe.Stephen Blott
Pre-loading the Vomnibar iframe seems to be causing some issues with the dev console. This PR disables pre-loading of the Vomnibar. I'm going to try this out for a while. If it doesn't seem to sluggish, then I'll merge it.
2018-01-19Fix bug on hashchange event.Stephen Blott
This handler is undefined at the point that it is installed. The definition is at the bottom of the file.
2018-01-10Fix issue referenceFlorian Bruhin
This sounds like #2035, #2305 is unrelated.
2017-12-18Do not use vimiumOnClickAttributeName variable...Stephen Blott
... use literals instead. For some reason, on Firefox, using `vimiumOnClickAttributeName` was causing link hints to fail silently (on Facebook). It's not at all clear why this was happening. Simply repeating the literal fixes the issue. Fixes #2879.
2017-12-18Tweak hint scoring for filtered hints.Stephen Blott
This tweaks the scoring of hints for filtered hints. Specifically, it scores matches at the start of the text or the start of a word higher than whole-word matches. This is intended avoid the phenomenon whereby adding matching characters to the filter causes the selected hint to change.
2017-12-16Guard against failure.Stephen Blott
Since these are executing in the page's context, they could break the page if they were to fail (for whatever reason). So we add some (possibly unnecessary) guards, just in case.
2017-12-16Fix rotate hints for filtered hints.Stephen Blott
We should rotate on `<Shift-Space>` too.
2017-12-15Merge pull request #2871 from smblott-github/detect-click-listenersStephen Blott
Detect click listeners for link hints.
2017-12-14Fix enabled state on webNavigation.Stephen Blott
`forTrusted()` for `checkEnabledAfterURLChange()` after web navigation is being called with a request (not an event). So make the request trusted. The symptom was that pass keys and the enabled state was not being correctly updated on web navigation.
2017-12-14Detect click listeners for link hints.Stephen Blott
This is a simpler version of #1167. It detects clickable elements with listeners added with `addEventListener()`. It includes some of @mrmr1993's ideas from #1167 (in fact, it's mostly those ideas tweaked into a slightly different form).
2017-12-12Merge pull request #2371 from smblott-github/add-swap-option-for-marksStephen Blott
Add "swap" command option for marks.
2017-12-02Recurse an arbitrary depth into shadow DOMs for insert mode elementmrmr1993
2017-11-30Rework insert mode (check status dynamically).Stephen Blott
This removes @insertModeLock and instead always checks whether we are in insert mode dynamically (as we previously did only for contentEditable). @mrmr1993... Would you be able to check this, please? It is intended to be mostly a no-op. Fixes #2841.
2017-11-25Tweak #2783.Stephen Blott
Tiny tweaks... 1. The test is clearer like this. 2. Use a more CoffeeScript-ish approach to sub-string.
2017-11-25Merge pull request #2783 from mrmr1993/use-HTML5-labelsStephen Blott
Use HTML labels accessor to get link hint labels for input elements
2017-11-25Use mkRepeatCommand in main.coffee.Stephen Blott
Tweak of #2601.
2017-11-25Merge pull request #2601 from mrmr1993/ff-copy-pasteStephen Blott
Enable Firefox clipboard commands
2017-11-24Merge branch 'mrmr1993-pr/link-hints-consistent-flash'Stephen Blott
2017-11-24Localise the logic for handling flash elements.Stephen Blott
2017-11-24Reintroduce default value for argument in LinkHints::activateLinkmrmr1993
2017-11-24Flash the clicked element for alphabet hintsmrmr1993
2017-11-24Merge branch 'mrmr1993-simplifyTabCount'Stephen Blott
Merging #2792 (mention @mrmr1993).
2017-11-24Retain @tabCount unchanged for non-printable characters.Stephen Blott
Previously, @tabCount was reset on the `<Shift>` `keydown` event, which defeats the purpose of #2792. Also, the @tabCount was reset on other non-printable characters such as `<LeftArrow>`.
2017-11-22Add a comment for Frame expando fixmrmr1993
2017-11-22FF: Reattach expando on every message to Framemrmr1993
This fixes #2830: it stops timesofindia.indiatimes.com from failing due to FF bug 1408996.
2017-11-20Unify link hint flash codepathsmrmr1993
2017-11-20Inline installKeyboardBlockermrmr1993
2017-11-20Tidy up multiple/redundant checks in LinkHints.activateLinkmrmr1993
2017-11-20Use Rect.translate to create rects for addFlashRectmrmr1993
2017-11-18Merge pull request #2802 from mrmr1993/pr/link-hints-pass-non-printing-keysStephen Blott
Don't suppress default action for non-printing keys in link hints
2017-11-18FF: Show HUD (transparently) when pasting, manage focus changes bettermrmr1993
2017-11-18FF: Use HUD frame for openCopiedUrlIn{Current,New}Tabmrmr1993
2017-11-18FF: Use HUD.copyToClipboard everywheremrmr1993
2017-11-18FF: Use HUD.copyToClipboard for copyCurrentUrlmrmr1993
2017-11-18Initialize the HUD for clipboard operations if it hasn't been alreadymrmr1993
2017-11-18FF: Add copy/paste functions to the HUDmrmr1993
2017-11-18Note reason for this rather obscure line.Stephen Blott
2017-11-18Merge pull request #2800 from mrmr1993/ff-aggressively-restore-window-expandoStephen Blott
FF: Restore window expando on every event listener
2017-11-18Make clear that element need not be provided here.Stephen Blott
2017-11-18Merge pull request #2801 from mrmr1993/pr/search-for-scrolling-element-from-bodyStephen Blott
Start searching for scrollable elements from <body> instead of <html> whenever possible
2017-11-16Use Mode::push to handle adding/removing a handlermrmr1993
2017-11-14Don't suppress default action for non-printing keys in link hintsmrmr1993
This restores the old behaviour prior to c4cc76e9f6a0a99ebc297e420be739a0fc77f827 (PR #2772).
2017-11-14Start searching for scrollable elements from <body> whenever possiblemrmr1993