From 514b29408844be4a424b6d2a58384efe8f9910c9 Mon Sep 17 00:00:00 2001 From: Madotsuki Date: Wed, 1 Oct 2014 03:24:46 -0500 Subject: [PATCH] Update Get.coffee Get.postFromRoot $.x('ancestor::div[@class="thread"]/div', node) --- src/General/Get.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 4f98ff3fc..ffe5f2bb5 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -17,7 +17,7 @@ Get = postFromNode: (node) -> Get.postFromRoot $.x 'ancestor::div[contains(@class,"postContainer")][1]', node contextFromNode: (node) -> - Get.postFromRoot $.x('ancestor::div[@class="thread"]', node).firstElementChild + Get.postFromRoot $.x('ancestor::div[@class="thread"]/div', node) postDataFromLink: (link) -> if link.hostname is 'boards.4chan.org' path = link.pathname.split '/'