diff --git a/4chan_x.user.js b/4chan_x.user.js index c087829e6..fa98213d7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1251,7 +1251,7 @@ } }, message: function(e) { - var data, duration; + var data, duration, file, oldFile; Recaptcha.reload(); $('iframe[name=iframe]').src = 'about:blank'; data = e.data; @@ -1262,8 +1262,13 @@ return; } if (qr.el) { - if (g.REPLY && conf['Persistent QR']) { + file = $('#files input', qr.el); + if (g.REPLY && (conf['Persistent QR'] || file)) { qr.refresh(); + if (file) { + oldFile = $('#qr_form input[type=file]', qr.el); + $.replace(oldFile, file); + } } else { qr.close(); } @@ -1361,7 +1366,7 @@ THREAD_ID = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', link).id; spoiler = $('.postarea label') ? '' : ''; challenge = $('input[name=recaptcha_challenge_field]').value; - html = "