diff options
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 4de0a695..5b7a7402 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -788,20 +788,12 @@ findAndFollowLink = (linkStrings) -> ) .filter((a) -> wordCount(a) <= wordCount(candidateLinks[0]) + 1) - # try to get exact word matches first for linkString in linkStrings for candidateLink in candidateLinks exactWordRegex = new RegExp("\\b" + linkString + "\\b", "i") if (exactWordRegex.test(candidateLink.innerText)) followLink(candidateLink) return true - - for linkString in linkStrings - for candidateLink in candidateLinks - if (candidateLink.innerText.toLowerCase().indexOf(linkString) != -1) - followLink(candidateLink) - return true - false findAndFollowRel = (value) -> |
