Update Get.coffee

Get.postFromRoot $.x('ancestor::div[@class="thread"]/div', node)
This commit is contained in:
Madotsuki 2014-10-01 03:24:46 -05:00
parent dcc085827f
commit 514b294088

View File

@ -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 '/'