diff --git a/4chan_x.user.js b/4chan_x.user.js index 450ae3887..b4e0c702a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2154,7 +2154,7 @@ if (conf['Quote Inline']) { $.bind(link, 'click', quoteInline.toggle); } - if (!(container = $('.container', el))) { + if (!((container = $('.container', el)) && container.parentNode === el)) { container = $.el('span', { className: 'container' }); diff --git a/changelog b/changelog index b9db51afd..65315f6f1 100644 --- a/changelog +++ b/changelog @@ -1,8 +1,9 @@ master - mayhem - fix updater refreshing 404'd threads - distinguishable unread favicons on white backgrounds backlink formatting + distinguishable unread favicons on white backgrounds + fix updater refreshing 404'd threads + fix backlinks added into inlined quotes 2.18.3 - mayhem diff --git a/script.coffee b/script.coffee index 49ddf9c20..cc7cbc7b3 100644 --- a/script.coffee +++ b/script.coffee @@ -1706,7 +1706,7 @@ quoteBacklink = $.bind link, 'mouseout', quotePreview.mouseout if conf['Quote Inline'] $.bind link, 'click', quoteInline.toggle - unless container = $ '.container', el + unless (container = $ '.container', el) and container.parentNode is el container = $.el 'span', className: 'container' root = $('.reportbutton', el) or $('span[id^=no]', el) $.after root, container