Allow for extensions that add text to link titles (#220?)

e.g. NoScript's Javascript link fixer.
This commit is contained in:
ccd0 2014-12-14 20:41:40 -08:00
parent e1150b0d7a
commit 28a0064a67
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ Get =
threadFromNode: (node) -> threadFromNode: (node) ->
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
postFromRoot: (root) -> postFromRoot: (root) ->
link = $ 'a[title="Link to this post"]', root link = $ 'a[title*="Link to this post"]', root
boardID = link.pathname.split('/')[1] boardID = link.pathname.split('/')[1]
postID = link.hash[2..] postID = link.hash[2..]
index = root.dataset.clone index = root.dataset.clone

View File

@ -16,7 +16,7 @@ class Clone extends Post
post: post post: post
info: info info: info
nameBlock: $ '.nameBlock', info nameBlock: $ '.nameBlock', info
quote: $ 'a[title="Reply to this post"]', info quote: $ 'a[title*="Reply to this post"]', info
comment: $ '.postMessage', post comment: $ '.postMessage', post
quotelinks: [] quotelinks: []
backlinks: info.getElementsByClassName 'backlink' backlinks: info.getElementsByClassName 'backlink'

View File

@ -37,7 +37,7 @@ class Post
post: post post: post
info: info info: info
nameBlock: $ '.nameBlock', info nameBlock: $ '.nameBlock', info
quote: $ 'a[title="Reply to this post"]', info quote: $ 'a[title*="Reply to this post"]', info
comment: $ '.postMessage', post comment: $ '.postMessage', post
links: [] links: []
quotelinks: [] quotelinks: []