aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2016-03-18Add Utils.makeIdempotent.Stephen Blott
The intention is to use this to clean up some of the initialisation sequences in the front end.
2016-03-06Tweak documentReady().Stephen Blott
We can remove these listeners once we're done.
2016-03-05Key bindings; more tweaks and fixes.Stephen Blott
Miscellaneous fixes and tweaks, including: - Reinstate key logging. - Fix count handling in line with expected behaviour in #2024. - Remove `noCount` option; we don't need it. - Simplify logic in various places. Fixes #2024.
2016-03-04Do not use standalone @.Stephen Blott
The styles guide says not to use standalone `@`. So this changes the occurrences I could find (with sed) to `this`. Occurrences within files with major outstanding PRs are omitted.
2016-03-03Remove methods which aren't used.Stephen Blott
2016-02-26Don't try to evaluate DomUtils.isSelectable on non-elementsmrmr1993
This stops us from throwing errors when document, window, etc. end up being passed into DomUtils.isSelectable.
2016-02-26Remove outdated blacklist in DomUtils.isEditable, use .isSelectablemrmr1993
This fixes #1964.
2016-02-20Correctly set `settingsVersion`.Stephen Blott
This fixes an error in #1950. There, we need to detect new installs, and did so by checking `settingsVersion`. However, `settingsVersion` is *always* truthy. So the "new install" code never triggers. Here, the default value for `settingsVersion` is falsy. Note, we *always* set `settingsVersion` when the extension is loaded. So `settingsVersion` is always set.
2016-02-18Wait-for-enter: default to "true" for new users.Stephen Blott
For existing users, the default is "false"; but for new users wait-for-enter defaults to "true".
2016-02-18Wait-for-enter: add necessary option support.Stephen Blott
2016-02-18Wait-for-enter: for filtered hints.Stephen Blott
This affects filtered hints only. If a hint is triggered because the user typed the link text, then: - highlight the link - but wait until the user types `Enter` before activating the link.
2016-02-18PassNextKey; minor tweak.Stephen Blott
2016-02-18PassNextKey; allow multiple mappings.Stephen Blott
This allows: map a passNextKey map b passNextKey (Previously, we only picked up the first mapping.)
2016-02-18PassNextKey; move key parsing to keyboard_utils.coffee.Stephen Blott
Previously, key event parsing was embedded in the normal-mode key handlers. Here, we move it to a new function (getKeyCharString) in KeyboardUtils so that it can also be used from elsewhere... In particular for detecting the pass-next-key key in insertmode.
2016-02-18PassNextKey; store key mapping in settings.Stephen Blott
We need the key mapped to passNextKey in the front end so that we can activate pass-next-key from within insert mode too (without the need to consult the background page).
2016-02-16Use `for own ... of` instead of `for ... of`mrmr1993
2016-02-12Nuke some legacy migration code.Stephen Blott
These migrations are at least ten months old (since release).
2016-02-11Tidy up detection for the current page and context belonging to usmrmr1993
2016-02-03Move help dialog into an iframemrmr1993
2016-01-31Merge pull request #1908 from smblott-github/fix-ctrl-escapeStephen Blott
For Ctrl-[, also require NOT Alt
2016-01-30Rework unhovering to occur automatically for all simulated hoversmrmr1993
2016-01-30Emit mouseout when clicking a new element link hintsmrmr1993
2016-01-30Merge pull request #1949 from smblott-github/simpler-hint-stringStephen Blott
Simplify hint string generation
2016-01-28Simplify hint-string generation; simplification.Stephen Blott
2016-01-26Disable position-at-end in text areas.Stephen Blott
When we `simulateSelect` an input and the selection is at the start, we move it to the end. This works well for single-line inputs. However, the UX is *bad* for multiline inputs (such as text areas), and doubly so if the end of the input happens to be out of the viewport. This commit simply disables the repositioning of the selection within text areas.
2015-12-04For Ctrl-[, also require NOT AltStephen Blott
See #1906. It is not obvious that this is in fact correct. In particular, it's not clear how `Ctrl-[` should work on Mac keyboards.
2015-10-23Properly check whether the selection is visible in the current viewportmrmr1993
2015-10-10Merge pull request #1849 from smblott-github/suppress-trailing-key-eventsStephen Blott
Suppress trailing key events (after link hints).
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-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-11Tweak comment from #1813.Stephen Blott
2015-09-11Move escaping regex special chars to its own utility functionmrmr1993
2015-09-10Don't decode javascript URIs on 46.0.2467.2 and latermrmr1993
The fix for Chromium issue 483000 landed in this version, so it is no longer necessary for #1611
2015-09-10Merge pull request #1811 from PrestanceDesign/feature/add-qwant-search-engineStephen Blott
Search completion; add support for Qwant completion
2015-09-10Search completion; add support for Qwant completionMichael SALIHI
2015-09-10Add "older" to previousPatterns and "newer" to nextPatternsFlorian Kaiser
Useful for blogs where buttons are named "older posts" and "newer posts".
2015-09-07Traverse shadow DOMs when looking for scrollable elementsmrmr1993
2015-09-06Merge pull request #1798 from gdh1995/run-on-xml-pagesStephen Blott
Run on XML pages (version 2)
2015-08-29Minor tweaks (clipboard).Stephen Blott
1. We're not using Clipboard in the the content scripts, so don't import it. 2. Use consistent syntax for method calls. This commit is a no-op.
2015-08-28a better way to detect document typesgdh1995
On a XML view page, createElement will create an "Element" object Otherwise, createElement('div') will get an object : HTMLDivElement >> HTMLElement >> Element
2015-08-28fix a new typogdh1995
oh my god
2015-08-28remove `.bind` imported in da8653f because dom tests fail if bind existsgdh1995
2015-08-28fix a typo in PR #1798gdh1995
2015-08-28clean codegdh1995
2015-08-28fix a bug that Clipboard fails without DomUtilsgdh1995
2015-08-28fix a bug that Utils using DomUtilsgdh1995
remove Utils.createElementFromHtml since it's not in use
2015-08-26Use createElementNS for XML documents and remove XML specific codepathsmrmr1993
This implements @gdh1995's idea from #1796.
2015-07-20Treat links with fixed position children like absolutely positionedmrmr1993
This fixes #1770.
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