diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 76df67523..1dd030857 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4770,7 +4770,8 @@ if (Conf['QR Shortcut']) { $.toggleClass($('.qr-shortcut'), 'disabled'); } - _ref = QR.posts.splice(0, QR.posts.length, new QR.post(true)); + new QR.post(true); + _ref = QR.posts.splice(0, QR.posts.length - 1); for (_i = 0, _len = _ref.length; _i < _len; _i++) { post = _ref[_i]; post["delete"](); diff --git a/builds/crx/script.js b/builds/crx/script.js index 13578f64b..0b06b2da7 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4771,7 +4771,8 @@ if (Conf['QR Shortcut']) { $.toggleClass($('.qr-shortcut'), 'disabled'); } - _ref = QR.posts.splice(0, QR.posts.length, new QR.post(true)); + new QR.post(true); + _ref = QR.posts.splice(0, QR.posts.length - 1); for (_i = 0, _len = _ref.length; _i < _len; _i++) { post = _ref[_i]; post["delete"](); diff --git a/src/Posting/QuickReply.coffee b/src/Posting/QuickReply.coffee index 179a7aefd..1127ba29b 100644 --- a/src/Posting/QuickReply.coffee +++ b/src/Posting/QuickReply.coffee @@ -101,7 +101,8 @@ QR = $.rmClass QR.captcha.nodes.input, 'error' if Conf['QR Shortcut'] $.toggleClass $('.qr-shortcut'), 'disabled' - for post in QR.posts.splice 0, QR.posts.length, new QR.post true + new QR.post true + for post in QR.posts.splice 0, QR.posts.length - 1 post.delete() QR.cooldown.auto = false QR.status()