From 18ec912ec7495ec79cdb410d56d9ac8b9395c3ff Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 29 Apr 2012 15:01:21 +0200 Subject: [PATCH] Fix Quotifier. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index d96208cfc..4fe8d61ad 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3391,7 +3391,7 @@ nodes.push($.tn(text)); } id = quote.match(/\d+$/)[0]; - board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.quotejs', post.el).pathname.split('/')[1]; + board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.postNum.desktop', post.el).firstElementChild.pathname.split('/')[1]; nodes.push(a = $.el('a', { textContent: "" + quote + "\u00A0(Dead)" })); diff --git a/script.coffee b/script.coffee index 83b3ca41a..dafdc8029 100644 --- a/script.coffee +++ b/script.coffee @@ -2629,7 +2629,7 @@ Quotify = m[1] else # Get the post's board, whether it's inlined or not. - $('.quotejs', post.el).pathname.split('/')[1] + $('.postNum.desktop', post.el).firstElementChild.pathname.split('/')[1] nodes.push a = $.el 'a', # \u00A0 is nbsp