aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
2016-01-30Merge pull request #1954 from smblott-github/link-hints-need-linksStephen Blott
Exit link hints if there are no links.
2016-01-30Exit link hints if there are no links.Stephen Blott
If there are no links on a page, then link-hints mode should exit immediately. Fixes #1395.
2016-01-30Merge pull request #1952 from smblott-github/link-hints-ignore-scrollStephen Blott
Do not exit link-hints mode on scroll.
2016-01-30Do not enter link-hints mode on scroll.Stephen Blott
Fixes #1918.
2016-01-30Remove CursorHidermrmr1993
2016-01-30Merge pull request #1949 from smblott-github/simpler-hint-stringStephen Blott
Simplify hint string generation
2016-01-29Simplify hint-string generation; tweaks.Stephen Blott
2016-01-29Simplify hint-string generation; filtered hints.Stephen Blott
2016-01-28Simplify hint-string generation; simplification.Stephen Blott
2016-01-28Simplify hint-string generation; tweaks.Stephen Blott
2016-01-28Simplify hint-string generationStephen Blott
2016-01-26Collapse selection on exiting visual mode.Stephen Blott
This applies only to the case where visual mode is run under edit mode. Previously, we were leaving the selection in place ... which is weird and not vim-like.
2016-01-18Spelling fixesGeorge Millo
2016-01-09Ensure hint handler is always removed.Stephen Blott
For some (unknown) reason, we do not receive the keyup event for Shift when activating link hints. Consequently, we are not correctly removing the keyup handler. And that handler is blocking subsequent keyup events, which has the effect of endless scrolling (because the scroller relies on keyup events to stop scrolling). Here, we correcttly remove the keyup handler when link-hints mode exits. Fixes #1911.
2015-10-23Properly check whether the selection is visible in the current viewportmrmr1993
2015-10-10Merge pull request #1845 from ↵Stephen Blott
smblott-github/better-delay-for-filtered-link-hints Block keyboard events when a filtered hint matches.
2015-10-10Merge pull request #1849 from smblott-github/suppress-trailing-key-eventsStephen Blott
Suppress trailing key events (after link hints).
2015-10-04Make mode.exit() idempotent.Stephen Blott
We've been calling hintMode.exit() twice: once explicitly, and once as a side effect of the simulated click event. Since there are so many code paths through link hints, it seems better to simply explicitly make mode.exit() idempotent for all modes. Which is what this commit does.
2015-10-04Make comment/explanation match implementation.Stephen Blott
2015-10-04Suppress trailing key events (after link hints).Stephen Blott
This ensures that -- on leaving link hints mode -- we consume any trailing keyup events (and don't let the underlying page see them). Additional notes: - There are other places where we seem to be leaking keyup events. - A separate bug... It looks like we're calling `exit()` on link-hints mode twice.
2015-10-02Simplify c9af886a92e4b686456b34949e907a9d79fb223e.Stephen Blott
2015-10-02Block keyboard events when a filtered hint matches.Stephen Blott
Previously, we blocked keyboard events for a fixed 200ms. With this PR, we continue blocking keyboard events until 150ms after the last `keydown` or `keypress` event. So, we wait until we think the user has stopped typing. Fixes #1842.
2015-09-21Add a comment explaining the choice of XMLHttpRequest for UIComponentmrmr1993
2015-09-20Merge pull request #1086 from mrmr1993/countMatchesPhil Crosby
Rework to make match counting code for searches more DRY and easier to read
2015-09-19Tidy up #1833.Stephen Blott
2015-09-18Load UIComponent stylesheet via XMLHttpRequest, use background as neededmrmr1993
2015-09-17Merge pull request #1821 from mrmr1993/hide-uicomponents-by-defaultStephen Blott
Don't show UIComponent <iframe>s while vimium.css loads
2015-09-13Only show link hints for <label>s for elements without a hintmrmr1993
2015-09-13Make <label>s clickable with LinkHintsmrmr1993
2015-09-13Don't show UIComponent <iframe>s while vimium.css loadsmrmr1993
This fixes #1817, where our stylesheet isn't loaded correctly due to a Chromium issue and the Vomnibar/HUD <iframe>s are always visible on the new tab page.
2015-09-11Move repeated conditional FindMode code into one placemrmr1993
2015-09-11Move escaping regex special chars to its own utility functionmrmr1993
2015-09-11Make the sort used for filetered link hints stable.Stephen Blott
JavaScript's sort function is not stable; this PR makes the sort used for filtered link hints stable. There are two reasons for doing this: - High-scoring hints are more likely to keep the same hint string as the user continues typing. (Currently, the hints assigned change based on the vaguaries of the non-stable sort.) - For equal-scoring hints, we retain the visit-child-before-parent ordering (which is used to NOT match a parent's text if we have already matched that text in a child). And, as a result of all of that, the UX is more predictable and hence better.
2015-09-07Traverse shadow DOMs when looking for scrollable elementsmrmr1993
2015-09-06Merge pull request #1774 from mrmr1993/single-character-passkeys-onlyStephen Blott
Only apply passkeys to single character keys explicitly
2015-09-06Merge branch 'gdh1995-better-KeydownEvents'Stephen Blott
2015-09-06Rename stringify to getEventCode.Stephen Blott
2015-08-29use documentReady instead of setTimeout to init focusThisFramegdh1995
2015-08-28clean codegdh1995
2015-08-28fix the bug that XML view page may change itself into RSS documentgdh1995
2015-08-26Use createElementNS for XML documents and remove XML specific codepathsmrmr1993
This implements @gdh1995's idea from #1796.
2015-08-22Prevent perpetual scroll.Stephen Blott
If we miss the keyup event while a smooth scroll is active (because the focus changes), then we scroll forever. This stops scrolling on blur. Fixes #1788.
2015-08-22Merge pull request #1745 from poacher2k/patch-1Stephen Blott
Add support for ngClick to link hints
2015-07-29fix bugs in KeydownEvents so that correct keyup events will be handledgdh1995
2015-07-26Only apply passkeys to single character keys explicitlymrmr1993
Before this change, a string in KeyboardUtils.keyNames could have the key it represents disabled if * its letters were in alphabetical order, and * the user has set all of its letters as passkeys, with none in between. For example, imagining that "del" (for delete) was in KeyboardUtils.keyNames, the passkeys "dpyl0e" would cause the delete key to be a passkey too. This commit fixes the issue by only applying passkeys when keyChar is a single character.
2015-07-20move the caret to end in `focusInput`gdh1995
2015-07-02Better angularJS detection.Stephen Blott
See @mrmr1993's comment in 2cc7dc1d2164b5dbb27bcc1d4bc0517402dd7581.
2015-07-01Re-work angularJS checks.Stephen Blott
Re-working of @poacher2k's ideas from #1745. - check whether AngularJS is being used. - avoid building the AngularJS attribute strings multiple times. - avoid building them *at all* if AngularJS is not being used.
2015-06-26Fix oversight from #1693.Stephen Blott
(We need to use "this" inside this function.)
2015-06-25Merge branch 'hud-iframe-input-with-store-all-settings'Stephen Blott