diff --git a/4chan_x.user.js b/4chan_x.user.js index 839c523c4..de201c79a 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1231,6 +1231,7 @@ $.bind(window, 'message', qr.message); $.bind($('#recaptcha_challenge_field_holder'), 'DOMNodeInserted', qr.captchaNode); qr.captchaTime = Date.now(); + qr.spoiler = $('.postarea label') ? '' : ''; qr.acceptFiles = $('.rules').textContent.match(/:(.+)/)[1].replace(/[A-Z]{3}/g, function(type) { switch (type) { case 'JPG': @@ -1304,7 +1305,7 @@ return qr.el = null; }, dialog: function(link) { - var THREAD_ID, c, email, html, m, name, pwd, spoiler, submitDisabled, submitValue; + var THREAD_ID, c, email, html, m, name, pwd, submitDisabled, submitValue; c = d.cookie; name = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; email = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; @@ -1312,9 +1313,8 @@ submitValue = $('#com_submit').value; submitDisabled = $('#com_submit').disabled ? 'disabled' : ''; THREAD_ID = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', link).id; - spoiler = $('.postarea label') ? '' : ''; qr.challenge = $('#recaptcha_challenge_field').value; - html = " X