aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorPhil Crosby2010-01-30 22:17:01 -0800
committerPhil Crosby2010-01-31 00:37:08 -0800
commit80cbb6c178a7cc98fe244c0410f024cacf9d6694 (patch)
tree9f44598c34d2113001c905a216cca7735db30a08 /linkHints.js
parent29d0b9c2a0fe441a8434ec1882e3dc4b9e3af638 (diff)
downloadvimium-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.js2
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); }