diff --git a/4chan_x.user.js b/4chan_x.user.js index 8c622a4c0..63a31bb07 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -4316,6 +4316,10 @@ _ref = $$('.quote.deadlink', post.blockquote); for (_i = 0, _len = _ref.length; _i < _len; _i++) { deadlink = _ref[_i]; + if (deadlink.parentNode.className === 'prettyprint') { + $.replace(deadlink, Array.prototype.slice.call(deadlink.childNodes)); + continue; + } quote = deadlink.textContent; a = $.el('a', { textContent: "" + quote + "\u00A0(Dead)" diff --git a/changelog b/changelog index 3139d6d31..f093c26bb 100644 --- a/changelog +++ b/changelog @@ -5,6 +5,7 @@ master 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 4f6e93a89..aa0d8c912 100644 --- a/script.coffee +++ b/script.coffee @@ -3526,6 +3526,11 @@ Quotify = node: (post) -> return if post.isInlined and not post.isCrosspost for deadlink in $$ '.quote.deadlink', post.blockquote + + if deadlink.parentNode.className is 'prettyprint' + $.replace deadlink, Array::slice.call deadlink.childNodes + continue + quote = deadlink.textContent a = $.el 'a', # \u00A0 is nbsp