Update Get.coffee
Get.postFromRoot $.x('ancestor::div[@class="thread"]/div', node)
This commit is contained in:
parent
dcc085827f
commit
514b294088
@ -17,7 +17,7 @@ Get =
|
|||||||
postFromNode: (node) ->
|
postFromNode: (node) ->
|
||||||
Get.postFromRoot $.x 'ancestor::div[contains(@class,"postContainer")][1]', node
|
Get.postFromRoot $.x 'ancestor::div[contains(@class,"postContainer")][1]', node
|
||||||
contextFromNode: (node) ->
|
contextFromNode: (node) ->
|
||||||
Get.postFromRoot $.x('ancestor::div[@class="thread"]', node).firstElementChild
|
Get.postFromRoot $.x('ancestor::div[@class="thread"]/div', node)
|
||||||
postDataFromLink: (link) ->
|
postDataFromLink: (link) ->
|
||||||
if link.hostname is 'boards.4chan.org'
|
if link.hostname is 'boards.4chan.org'
|
||||||
path = link.pathname.split '/'
|
path = link.pathname.split '/'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user