Allow for extensions that add text to link titles (#220?)
e.g. NoScript's Javascript link fixer.
This commit is contained in:
parent
e1150b0d7a
commit
28a0064a67
@ -12,7 +12,7 @@ Get =
|
||||
threadFromNode: (node) ->
|
||||
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
|
||||
postFromRoot: (root) ->
|
||||
link = $ 'a[title="Link to this post"]', root
|
||||
link = $ 'a[title*="Link to this post"]', root
|
||||
boardID = link.pathname.split('/')[1]
|
||||
postID = link.hash[2..]
|
||||
index = root.dataset.clone
|
||||
|
||||
@ -16,7 +16,7 @@ class Clone extends Post
|
||||
post: post
|
||||
info: info
|
||||
nameBlock: $ '.nameBlock', info
|
||||
quote: $ 'a[title="Reply to this post"]', info
|
||||
quote: $ 'a[title*="Reply to this post"]', info
|
||||
comment: $ '.postMessage', post
|
||||
quotelinks: []
|
||||
backlinks: info.getElementsByClassName 'backlink'
|
||||
|
||||
@ -37,7 +37,7 @@ class Post
|
||||
post: post
|
||||
info: info
|
||||
nameBlock: $ '.nameBlock', info
|
||||
quote: $ 'a[title="Reply to this post"]', info
|
||||
quote: $ 'a[title*="Reply to this post"]', info
|
||||
comment: $ '.postMessage', post
|
||||
links: []
|
||||
quotelinks: []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user