diff --git a/4chan_x.user.js b/4chan_x.user.js index be4f8facb..b18e1204d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2411,7 +2411,7 @@ root = q.parentNode.nodeName === 'FONT' ? q.parentNode : q.nextSibling ? q.nextSibling : q; if (el = $.id(id)) { inline = quoteInline.table(id, el.innerHTML); - if (q.className === 'backlink') { + if (/\bbacklink\b/.test(q.className)) { $.after(q.parentNode, inline); return; } diff --git a/script.coffee b/script.coffee index dcbea2bbe..57146bb22 100644 --- a/script.coffee +++ b/script.coffee @@ -1888,7 +1888,7 @@ quoteInline = root = if q.parentNode.nodeName is 'FONT' then q.parentNode else if q.nextSibling then q.nextSibling else q if el = $.id id inline = quoteInline.table id, el.innerHTML - if q.className is 'backlink' + if /\bbacklink\b/.test q.className $.after q.parentNode, inline return $.after root, inline