diff options
Diffstat (limited to 'content_scripts/link_hints.coffee')
| -rw-r--r-- | content_scripts/link_hints.coffee | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index 7cd2dfbf..44f7a5f5 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -571,9 +571,9 @@ class FilterHints                if position < 0                  0 # No match.                else if position == 0 and searchWord.length == linkWord.length -                if idx == 0 then 8 else 6 # Whole-word match. +                if idx == 0 then 8 else 4 # Whole-word match.                else if position == 0 -                if idx == 0 then 4 else 2 # Match at the start of a word. +                if idx == 0 then 6 else 2 # Match at the start of a word.                else                  1 # 0 < position; other match.            Math.max linkWordScores... @@ -707,7 +707,7 @@ LocalHints =          reason = "Open."      # Detect elements with "click" listeners installed with `addEventListener()`. -    isClickable ||= element.hasAttribute vimiumOnClickAttributeName +    isClickable ||= element.hasAttribute "_vimium-has-onclick-listener"      # An element with a class name containing the text "button" might be clickable.  However, real clickables      # are often wrapped in elements with such class names.  So, when we find clickables based only on their | 
