Fix autoposting stopping on incorrect captcha.
This commit is contained in:
parent
c2a2a7c5bf
commit
3d8f62abd0
@ -1834,7 +1834,7 @@
|
|||||||
err = b.firstChild.textContent;
|
err = b.firstChild.textContent;
|
||||||
}
|
}
|
||||||
if (err) {
|
if (err) {
|
||||||
if (err === 'You seem to have mistyped the verification.' || err === 'Connection error with sys.4chan.org.') {
|
if (/captcha|verification/i.test(err) || err === 'Connection error with sys.4chan.org.') {
|
||||||
qr.cooldown.auto = !!$.get('captchas', []).length;
|
qr.cooldown.auto = !!$.get('captchas', []).length;
|
||||||
qr.cooldown.set(2);
|
qr.cooldown.set(2);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -1404,7 +1404,7 @@ qr =
|
|||||||
err = b.firstChild.textContent
|
err = b.firstChild.textContent
|
||||||
|
|
||||||
if err
|
if err
|
||||||
if err is 'You seem to have mistyped the verification.' or err is 'Connection error with sys.4chan.org.'
|
if /captcha|verification/i.test(err) or err is 'Connection error with sys.4chan.org.'
|
||||||
# Enable auto-post if we have some cached captchas.
|
# Enable auto-post if we have some cached captchas.
|
||||||
qr.cooldown.auto = !!$.get('captchas', []).length
|
qr.cooldown.auto = !!$.get('captchas', []).length
|
||||||
# Too many frequent mistyped captchas will auto-ban you!
|
# Too many frequent mistyped captchas will auto-ban you!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user