From 1609e4996b05f176cf6c047ee3a6f105697af41b Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 7 Dec 2013 13:36:48 +0100 Subject: [PATCH] Fix #1371. Xpaths are fabulous. --- src/Miscellaneous/Keybinds.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/Keybinds.coffee b/src/Miscellaneous/Keybinds.coffee index 76d817825..7414f1763 100644 --- a/src/Miscellaneous/Keybinds.coffee +++ b/src/Miscellaneous/Keybinds.coffee @@ -197,7 +197,7 @@ Keybinds = 'following' else 'preceding' - return unless next = $.x "#{axe}-sibling::div[contains(@class,'replyContainer')][1]/child::div[contains(@class,'reply')]", root + return unless next = $.x "#{axe}-sibling::div[contains(@class,'replyContainer') and not(@hidden) and not(child::div[@class='stub'])][1]/child::div[contains(@class,'reply')]", root Header.scrollToIfNeeded next, delta is +1 @focus next $.rmClass postEl, 'highlight'