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) ->
|
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
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
@ -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: []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user