diff options
| author | Phil Crosby | 2010-01-30 22:17:01 -0800 |
|---|---|---|
| committer | Phil Crosby | 2010-01-31 00:37:08 -0800 |
| commit | 80cbb6c178a7cc98fe244c0410f024cacf9d6694 (patch) | |
| tree | 9f44598c34d2113001c905a216cca7735db30a08 /linkHints.js | |
| parent | 29d0b9c2a0fe441a8434ec1882e3dc4b9e3af638 (diff) | |
| download | vimium-80cbb6c178a7cc98fe244c0410f024cacf9d6694.tar.bz2 | |
Recognize elements with "onclick" attributes in link hints.
Fixes #72, although it makes Reddit look pretty messy since each link now has 3 letters.
Diffstat (limited to 'linkHints.js')
| -rw-r--r-- | linkHints.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linkHints.js b/linkHints.js index d5ed9352..2c085ff7 100644 --- a/linkHints.js +++ b/linkHints.js @@ -18,7 +18,7 @@ var linkHintsCssAdded = false; // An XPath describing what a clickable element is. We could also look for images with an onclick // attribute, but let's wait to see if that really is necessary. -var clickableElementsXPath = "//a | //textarea | //button | //select | //input[not(@type='hidden')]"; +var clickableElementsXPath = "//a | //textarea | //button | //select | //input[not(@type='hidden')] | //*[@onclick]"; // We need this as a top-level function because our command system doesn't yet support arguments. function activateLinkHintsModeToOpenInNewTab() { activateLinkHintsMode(true); } |
