From 260e9a804f1105a7e8258b9525dfed10287edad8 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 20 Jun 2011 16:45:32 -0700 Subject: [PATCH] put container after report button --- 4chan_x.user.js | 6 ++++-- script.coffee | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a594692eb..83af44a87 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1869,9 +1869,11 @@ $.bind(link, 'click', quoteInline.toggle); } if (!(container = $('.container', el))) { - container = $.after($('span[id^=no]', el), $.el('span', { + container = $.el('span', { className: 'container' - })); + }); + root = $('.reportbutton', el) || $('span[id^=no]', el); + $.after(root, container); } _results.push($.append(container, $.tn(' '), link)); } diff --git a/script.coffee b/script.coffee index fc9956fa0..870f5f492 100644 --- a/script.coffee +++ b/script.coffee @@ -1467,7 +1467,9 @@ quoteBacklink = if $.config 'Quote Inline' $.bind link, 'click', quoteInline.toggle unless container = $ '.container', el - container = $.after $('span[id^=no]', el), $.el 'span', className: 'container' + container = $.el 'span', className: 'container' + root = $('.reportbutton', el) or $('span[id^=no]', el) + $.after root, container $.append container, $.tn(' '), link quoteInline =