From ad2e396d0440a2d3c24c80bccf85057618a125a0 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 3 Mar 2012 02:46:09 +0100 Subject: [PATCH] Append backlinks into the container before appending the said container into the post. --- 4chan_x.user.js | 4 +++- script.coffee | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 9e2680ae7..4bff284f1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3087,10 +3087,12 @@ container = $.el('span', { className: 'container' }); + $.add(container, [$.tn(' '), link]); root = $('.reportbutton', el) || $('span[id]', el); $.after(root, container); + } else { + $.add(container, [$.tn(' '), link]); } - $.add(container, [$.tn(' '), link]); } } }; diff --git a/script.coffee b/script.coffee index f42c16664..064c05449 100644 --- a/script.coffee +++ b/script.coffee @@ -2509,9 +2509,11 @@ quoteBacklink = $.on link, 'click', quoteInline.toggle unless (container = $ '.container', el) and container.parentNode is el container = $.el 'span', className: 'container' + $.add container, [$.tn(' '), link] root = $('.reportbutton', el) or $('span[id]', el) $.after root, container - $.add container, [$.tn(' '), link] + else + $.add container, [$.tn(' '), link] return quoteInline =