Reload captcha if there are posts in the queue.

This commit is contained in:
Zixaphir 2014-04-05 00:46:16 -07:00
parent f6353729eb
commit 4d8e4b62da
4 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.5.1 - 2014-04-04
* 4chan X - Version 1.5.1 - 2014-04-05
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript==
/*
* 4chan X - Version 1.5.1 - 2014-04-04
* 4chan X - Version 1.5.1 - 2014-04-05
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -6804,6 +6804,10 @@
if (!(Conf['Persistent QR'] || QR.cooldown.auto)) {
QR.close();
} else {
if (QR.posts.length > 1) {
QR.captcha.setup();
QR.captcha.afterSetup();
}
post.rm();
}
QR.cooldown.set({

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript
/*
* 4chan X - Version 1.5.1 - 2014-04-04
* 4chan X - Version 1.5.1 - 2014-04-05
*
* Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -6849,6 +6849,10 @@
if (!(Conf['Persistent QR'] || QR.cooldown.auto)) {
QR.close();
} else {
if (QR.posts.length > 1) {
QR.captcha.setup();
QR.captcha.afterSetup();
}
post.rm();
}
QR.cooldown.set({

View File

@ -791,6 +791,9 @@ QR =
unless Conf['Persistent QR'] or QR.cooldown.auto
QR.close()
else
if QR.posts.length > 1
QR.captcha.setup()
QR.captcha.afterSetup()
post.rm()
QR.cooldown.set {req, post, isReply, threadID}