diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 698ae0c19..cd20f3789 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -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 = $ '.postNum > a[href*="#"]', root boardID = link.pathname.split('/')[1] postID = link.hash[2..] index = root.dataset.clone diff --git a/src/General/lib/clone.class b/src/General/lib/clone.class index a0dab84a3..d40c4dcea 100755 --- a/src/General/lib/clone.class +++ b/src/General/lib/clone.class @@ -16,7 +16,7 @@ class Clone extends Post post: post info: info nameBlock: $ '.nameBlock', info - quote: $ 'a[title*="Reply to this post"]', info + quote: $ '.postNum > a:nth-of-type(2)', info comment: $ '.postMessage', post quotelinks: [] backlinks: info.getElementsByClassName 'backlink' diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 12439d3b9..f1ad6e43e 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -21,7 +21,7 @@ class Post el.removeAttribute 'style' # XXX /pol/ fakedoubles if board.ID is 'pol' - $('a[title="Reply to this post"]', root2).textContent = +root2.id[2..] + $('.postNum > a:nth-of-type(2)', root2).textContent = +root2.id[2..] textNodes = $.X './/text()', root2 i = 0 while node = textNodes.snapshotItem i++ @@ -41,7 +41,7 @@ class Post post: post info: info nameBlock: $ '.nameBlock', info - quote: $ 'a[title*="Reply to this post"]', info + quote: $ '.postNum > a:nth-of-type(2)', info comment: $ '.postMessage', post links: [] quotelinks: []