diff --git a/4chan_x.user.js b/4chan_x.user.js index 2fc09467c..ad9482aeb 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1222,7 +1222,7 @@ submit.value = 'Submit'; } if (qr.el && $('#auto', qr.el).checked) { - return qr.auto(); + return qr.autoPost(); } } } @@ -1251,7 +1251,7 @@ files = $('#files', qr.el); return $.append(files, file); }, - auto: function() { + autoPost: function() { var captcha, responseField; responseField = $('#recaptcha_response_field', qr.el); if (!responseField.value && (captcha = qr.captcha.shift())) { @@ -1319,7 +1319,7 @@ $('#recaptcha_response_field', qr.el).value = ''; $('#autohide', qr.el).checked = false; if (data.textContent === 'You seem to have mistyped the verification.') { - qr.auto(); + qr.autoPost(); } return; } diff --git a/script.coffee b/script.coffee index e08b51d98..84c17a74b 100644 --- a/script.coffee +++ b/script.coffee @@ -963,7 +963,7 @@ cooldown = submit.disabled = false submit.value = 'Submit' if qr.el and $('#auto', qr.el).checked - qr.auto() + qr.autoPost() qr = # remove file @@ -992,7 +992,7 @@ qr = files = $ '#files', qr.el $.append files, file - auto: -> + autoPost: -> responseField = $ '#recaptcha_response_field', qr.el if !responseField.value and captcha = qr.captcha.shift() $('#recaptcha_challenge_field', qr.el).value = captcha.challenge @@ -1070,7 +1070,7 @@ qr = $('#recaptcha_response_field', qr.el).value = '' $('#autohide', qr.el).checked = false if data.textContent is 'You seem to have mistyped the verification.' - qr.auto() + qr.autoPost() return if qr.el