Merge pull request #800 from Madotsukii/master

Updated coffee.get to handle birthday script
This commit is contained in:
Zixaphir 2014-10-01 17:38:06 -07:00
commit b5d6915dda
4 changed files with 14 additions and 32 deletions

View File

@ -1,5 +1,5 @@
/*
* appchan x - Version 2.9.36 - 2014-09-07
* appchan x - Version 2.9.36 - 2014-10-01
*
* Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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