aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
AgeCommit message (Collapse)Author
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-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
2015-06-25Merge branch 'store-all-settings' into hud-iframe-input-with-store-all-settingsStephen Blott
2015-06-23*Always* collapse selection on yank.Stephen Blott
This only affects the transition from visual mode back to edit mode. Previously, we were incorrectly leaving the selection in place. (The comment above was correct, but the implementation wasn't.)
2015-06-19More concise commentDaniel Skogly
Because I apparently can't read docs properly!
2015-06-19Clarifications to ngClick checkDaniel Skogly
2015-06-18Proper function callDaniel Skogly
CoffeeScript is not my native tongue.
2015-06-18Proper function definitionDaniel Skogly
Changed from : to =
2015-06-18Added hasNgClick-check in getVisibleClickableDaniel Skogly
There's a fair amount of angular-sites running around, so including ngClick (with all its valid variations) seems like a good idea. I added a hasNgClick-check in the if block that checks if an element is clickable regardless of tagName.
2015-06-17Initialise modes and install listeners at the same time.Stephen Blott
Previously, we initialised modes early, but then installed our listeners only after DOM ready, and then only after we'd heard back from the background page in `checkIfEnabledForUrl`. This creates a gap during which modes are installed, but they're not receiving events. If an input is focused during that gap, then we don't pick it up when the modes are installed, and we don't pick it up when the input is focussed (because we're not listening). This commit moves these two initialisation steps together, so they happen at the same time and there is no gap. Fixes #1738.
2015-06-13Clean up code after mergemrmr1993
2015-06-13Refactor duplicate code.Stephen Blott
2015-06-13Fix returnToViewport.Stephen Blott
The super-class's constructor sets @options, so we can't set it here; instead, we pass the options along.
2015-06-13Refactor findInPlace.Stephen Blott
This code belongs together, so we put it together.
2015-06-11Make exiting FindMode with <esc> work as it should againmrmr1993
This undoes the effect of the breaking refactor in 73f66f25e6b8e5b5b8456074ad4fa79ba1d3ca4d, where PostFindMode was entered whenever FindMode was exited, instead of only when it was exited with <enter>.
2015-06-11Revert "Make "a-z" characters work in filter hints mode."Stephen Blott
This reverts commit 53d131700e5f33cb9476f00a905c238b0083f3dc. (This needs more thought.)
2015-06-11Make "a-z" characters work in filter hints mode.Stephen Blott
When we read hint characters, we read them lower case. When we generate hint markers, we generate them upper case. So they never match. (Exactly why anyone would want to use "abcde" for filtered link hints isn't clear, but at least we should behave correctly.)
2015-06-10Update rawQuery directly from FindMode.updateQuerymrmr1993
2015-06-10Integrate executeFind into FindMode as FindMode.executemrmr1993
2015-06-10Move findModeQuery to FindMode.querymrmr1993
2015-06-10Make find from visual mode behave the same as a normal findmrmr1993
2015-06-10Coffee-ify strings, fix no match regexp search message in visual modemrmr1993
2015-06-10Simplify executeFind by hardcoding default argumentsmrmr1993
2015-06-10Add FindMode.saveQuery to avoid addressing findModeQuery directlymrmr1993
2015-06-10Remove redundant conditionalmrmr1993
2015-06-10Integrate functions exposed on window into FindModemrmr1993
2015-06-10Move getNextQueryFromFindModeMatches and getFindModeQuery into mode_findmrmr1993
2015-06-10Move updateFindModeQuery to FindMode.updateQuerymrmr1993
2015-06-10Move updateFindModeQuery to mode_find.coffeemrmr1993
2015-06-10Inline HUD.findModeKeydown at its sole callsitemrmr1993