diff --git a/4chan_x.js b/4chan_x.js index dcf9e0b16..a1a8841f6 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1765,8 +1765,7 @@ } } if (this.className === 'backlink') { - root = $('table, blockquote', root); - $.before(root, inline); + $.after($('td > br:first-of-type, td > a:last-of-type', this.parentNode), inline); return $.hide($.x('ancestor::table[1]', el)); } else { return $.after(this.parentNode, inline); diff --git a/script.coffee b/script.coffee index a78075abd..3c2f2330f 100644 --- a/script.coffee +++ b/script.coffee @@ -1411,8 +1411,7 @@ quoteInline = #FIXME need an array of callbacks g.requests[threadID] = $.get @href, (-> quoteInline.parse this, id, threadID, inline) if @className is 'backlink' - root = $ 'table, blockquote', root - $.before root, inline + $.after $('td > br:first-of-type, td > a:last-of-type', @parentNode), inline $.hide $.x 'ancestor::table[1]', el else $.after @parentNode, inline