aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2014-12-22Correct a typo, add some tests for consistencymrmr1993
2014-12-22Support small <area>s with link hintsmrmr1993
This is primarily to deal with our calculated rects being too small for the `<area shape="poly">` on http://www.mapsofindia.com/worldmap/clickable-world-map.html
2014-12-21Exclusion; fiddle with styling.Stephen Blott
2014-12-21Exclusion; warn on chrome pages.Stephen Blott
2014-12-21Exclusion; unique keys.Stephen Blott
2014-12-19Tidy cursor hider, move haveChromeVersion to utils.Stephen Blott
2014-12-18Use Rect.copy instead of literal member by member copy of a rectmrmr1993
2014-12-18Make some minor changes/tweaks to rect handling in dom_utilsmrmr1993
2014-12-18Add tests for lib/rectmrmr1993
2014-12-18Move rect functions to their own filemrmr1993
2014-12-18Remove overlapping rects from link hintsmrmr1993
2014-12-17Unify two loops into onemrmr1993
2014-12-17Stop ignoring clickable opacity: none; elementsmrmr1993
Some websites (notably Facebook) use `opacity: none;` to show an image in the place of a less-customisable element (eg. an `<input type="file" />`). To not show link hints for such transparent elements is confusing and often the wrong thing to do.
2014-12-17Don't show link hints for offscreen image mapsmrmr1993
2014-12-17Try to make image map rectangles work bettermrmr1993
2014-12-17Combine rectangle calculation and clickable element detectionmrmr1993
2014-12-17Inline DomUtils.getClickableElementsmrmr1993
2014-12-17Use element.readOnly instead of getAttribute "readonly"mrmr1993
2014-12-17Treat area elements as being at the point of their img elementmrmr1993
2014-12-17Use the DOM rather than XPath to detect clickable elementsmrmr1993
2014-12-17Merge branch 'master' into post-1.46Stephen Blott
2014-12-16Ensure we click <input type="submit"> elementsmrmr1993
2014-12-15Minor cleanup in evaluateXPath.Stephen Blott
2014-12-15Merge branch 'fullscreen-children-linkhints' of ↵Stephen Blott
https://github.com/mrmr1993/vimium into mrmr1993-fullscreen-children-linkhints
2014-12-15Restrict evaluateXPath to the fullscreen element when fullscreenmrmr1993
2014-12-14Merge branch 'vomnibarToPage' of https://github.com/smblott-github/vimium ↵Stephen Blott
into smblott-github-vomnibarToPage Conflicts: background_scripts/main.coffee content_scripts/vimium.css content_scripts/vomnibar.coffee lib/utils.coffee
2014-12-14Merge branch 'add-html5-input-types' of https://github.com/mrmr1993/vimium ↵Stephen Blott
into mrmr1993-add-html5-input-types
2014-12-14List HTML5 date types that should use simulateSelectmrmr1993
2014-12-14Update a comment about the changed nature of isSelectablemrmr1993
2014-12-06Only consider fullscreen elements' children for link hintsmrmr1993
2014-11-24Frames; eliminate Array::rotate.Stephen Blott
Array::rotate extends the array object, polluting its name space; so, instead, we just rotate the array manually.
2014-11-23Frames; tidy up.Stephen Blott
2014-11-23Change DomUtils.makeXPath to loop as an array rather than an objectmrmr1993
This fixes the tests, which were broken by makeXPath trying to recurse over Arrays with an augmented prototype.
2014-11-23Monitor a tab's frames as a list with the current frame at its headmrmr1993
2014-11-06Add (initial, basic) isUrl tests (more needed).Stephen Blott
2014-11-06Include scheme for domain suggestions; tighter test for valid domain.Stephen Blott
2014-11-06Don't suggest domains which aren't.Stephen Blott
2014-11-05Add support for selecting HTML5 inputs, change criterion to a blacklistmrmr1993
This is designed to address several issues: * `<input type="range" />` elements don't respond well to the simulated click; they always reset their value to the minimum. * The lack of `mouseup` event from the simulated click makes `<input type="range />` elements slide when the mouse is moved. * HTML5 adds a large number of text-based `<input>`s that should be focused like the `type="text"` case, for consistency. (Using a blacklist halves the number of types we have to list.) * An `<input>` with a `type` the browser doesn't support is rendered as a `type="text"`, so a blacklist ensures that the focusing action is consistent on all elements behaving as `type="text"`.
2014-11-02Centralize handling of event propagation.Stephen Blott
2014-11-02Merge pull request #1219 from mrmr1993/fix-google-groupsStephen Blott
Force our key event handlers to have the highest possible priority
2014-11-02Refactor Utils.hasChromePrefix and add tests.Stephen Blott
2014-11-02Force our key event handlers to have the highest possible prioritymrmr1993
* The `window` object receives key events before the `document` object, and so any event listeners on `window` get priority. This commit switches from binding `keydown`, `keypress`, `keyup` on `document` to on `window`. * We were using `event.stopPropagation()` to prevent other event listeners from firing if we had handled an event. This stopped the event from propagating to other elements/objects and triggering their event listeners, but didn't block event listeners registered on the same object as ours. Switching to `event.stopImmediatePropagation()` ensures that our event listener is the last to run for the event. Fixing these issues allows Vimium to regain control over key events in Google Groups (eg. the [vimium-dev group](https://groups.google.com/forum/vimium-dev)).
2014-11-02Fix browser prefix detectionmrmr1993
2014-09-17Allow open popups from bookmarklets. Fix #968.Shrikant Sharat
Use the `openUrlInCurrentTab` message to open bookmarklets so they are opened via `chrome.tabs.update` instead of an injected script element. This allows bookmarklets to open popups.
2014-04-23Remove additional unnecessary checksmrmr1993
2014-04-23Recognise <ctrl> key in LinkHintsmrmr1993
2014-04-23Add openlinks in foreground mode and fix #1035mrmr1993
2014-04-22Merge pull request #1027 from mrmr1993/dataURIsPhil Crosby
Handle data: URIs as a chrome prefix
2014-04-19Handle data: URIs as a chrome prefixmrmr1993
2013-10-28Fixed detection of links which are only partially inside the viewportStanley Shyiko