diff --git a/4chan_x.user.js b/4chan_x.user.js index 78df3b7f1..545fca2be 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1364,8 +1364,9 @@ return f.innerHTML = f.innerHTML; }, dialog: function(link) { - var THREAD_ID, c, challenge, dialog, html, m, mail, name, pass, spoiler, src, submitHTML; - submitHTML = $('#com_submit').outerHTML; + var THREAD_ID, c, challenge, dialog, html, m, mail, name, pass, spoiler, src, submitDisabled, submitValue; + submitValue = $('#com_submit').value; + submitDisabled = $('#com_submit').disabled ? 'disabled' : ''; THREAD_ID = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', link).id; challenge = $('input[name=recaptcha_challenge_field]').value; src = "http://www.google.com/recaptcha/api/image?c=" + challenge; @@ -1373,7 +1374,7 @@ name = (m = c.match(/4chan_name=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; mail = (m = c.match(/4chan_email=([^;]+)/)) ? decodeURIComponent(m[1]) : ''; pass = (m = c.match(/4chan_pass=([^;]+)/)) ? decodeURIComponent(m[1]) : $('input[name=pwd]').value; - html = "