From 260b34b847cffeeb7e706d82ce5f6aca74a6f83a Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 7 Jan 2017 09:49:16 +0100 Subject: [PATCH] Add ugly special-case for Google prev/next page Refs. #836. --- extension/lib/commands-frame.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extension/lib/commands-frame.coffee b/extension/lib/commands-frame.coffee index d8c27ad..94c0988 100644 --- a/extension/lib/commands-frame.coffee +++ b/extension/lib/commands-frame.coffee @@ -518,6 +518,10 @@ commands.follow_pattern = ({vim, type, browserOffset, options}) -> attrs = options.pattern_attrs matchingLink = do -> + # Special-case for Google searches. + googleLink = document.getElementById("pn#{type}") + return googleLink if googleLink + # First search in attributes (favoring earlier attributes) as it's likely # that they are more specific than text contexts. for attr in attrs -- 2.39.3