diff --git a/4chan_x.user.js b/4chan_x.user.js index 14c34fd06..63a31bb07 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4316,8 +4316,8 @@ _ref = $$('.quote.deadlink', post.blockquote); for (_i = 0, _len = _ref.length; _i < _len; _i++) { deadlink = _ref[_i]; - if (deadlink.parentElement.className === 'prettyprint') { - $.replace(deadlink, deadlink.firstChild); + if (deadlink.parentNode.className === 'prettyprint') { + $.replace(deadlink, Array.prototype.slice.call(deadlink.childNodes)); continue; } quote = deadlink.textContent; diff --git a/changelog b/changelog index 3ffc20c2c..f093c26bb 100644 --- a/changelog +++ b/changelog @@ -1,11 +1,11 @@ master - noface Fix Anonymize not working on stubs. - Fix deadquotes showing up in code-tags. - Mayhem Fix selection quoting on Opera. Fix history bug with Persistent QR enabled on Chrome. Fix posting warning not displaying the reason. + Fix deadquotes showing up in code-tags. 2.37.0 - noface diff --git a/script.coffee b/script.coffee index dea587a50..aa0d8c912 100644 --- a/script.coffee +++ b/script.coffee @@ -3527,8 +3527,8 @@ Quotify = return if post.isInlined and not post.isCrosspost for deadlink in $$ '.quote.deadlink', post.blockquote - if deadlink.parentElement.className is 'prettyprint' - $.replace deadlink, deadlink.firstChild + if deadlink.parentNode.className is 'prettyprint' + $.replace deadlink, Array::slice.call deadlink.childNodes continue quote = deadlink.textContent