From 28a0064a67e8477814c5e386d050f51a90faa308 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 14 Dec 2014 20:41:40 -0800 Subject: [PATCH] Allow for extensions that add text to link titles (#220?) e.g. NoScript's Javascript link fixer. --- src/General/Get.coffee | 2 +- src/General/lib/clone.class | 2 +- src/General/lib/post.class | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/General/Get.coffee b/src/General/Get.coffee index ddc35465a..eb1966a62 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 = $ 'a[title*="Link to this post"]', 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 6786d55cd..a0dab84a3 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: $ 'a[title*="Reply to this post"]', info comment: $ '.postMessage', post quotelinks: [] backlinks: info.getElementsByClassName 'backlink' diff --git a/src/General/lib/post.class b/src/General/lib/post.class index b8cdc2e1c..13b67b4a3 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -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: []