diff --git a/CHANGELOG.md b/CHANGELOG.md index b2e8561d8..c40fe09fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ### v1.13.8 +**v1.13.8.1** *(2017-02-10)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.8.1/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.8.1/builds/4chan-X-noupdate.crx)] +- Fix bug from v1.13.8.0 causing v1 captcha sometimes not to reload when needed. + **v1.13.8.0** *(2017-02-07)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.8.0/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.8.0/builds/4chan-X-noupdate.crx)] - Based on v1.13.7.2. - Retry posting on connection errors using the same captcha. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 90c76927a..f077ab262 100644 Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js index 0d0f61c7a..b01d26baa 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.13.8.0 +// @version 1.13.8.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index 5e2f5cef6..4db45b8aa 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.13.8.0 +// @version 1.13.8.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -151,7 +151,7 @@ docSet = function() { }; g = { - VERSION: '1.13.8.0', + VERSION: '1.13.8.1', NAMESPACE: '4chan X.', boards: {} }; @@ -21463,7 +21463,7 @@ QR = (function() { return $.event('QRDialogCreation', null, dialog); }, submit: function(e) { - var captcha, err, extra, filetag, formData, options, post, ref, thread, threadID, wasAuto; + var captcha, err, extra, filetag, formData, options, post, ref, thread, threadID; if (e != null) { e.preventDefault(); } @@ -21474,9 +21474,6 @@ QR = (function() { $.forceSync('cooldowns'); if (QR.cooldown.seconds) { QR.cooldown.auto = !QR.cooldown.auto; - if (QR.cooldown.auto) { - QR.captcha.setup(true); - } QR.status(); return; } @@ -21518,7 +21515,6 @@ QR = (function() { QR.error(err); return; } - wasAuto = QR.cooldown.auto; QR.cooldown.auto = QR.posts.length > 1; post.lock(); formData = { @@ -21577,10 +21573,7 @@ QR = (function() { } QR.req = $.ajax("https://sys.4chan.org/" + g.BOARD + "/post", options, extra); QR.req.progress = '...'; - QR.status(); - if (!wasAuto) { - return QR.captcha.setup(true); - } + return QR.status(); }, response: function() { var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; @@ -21656,6 +21649,7 @@ QR = (function() { })()); if (postsCount) { post.rm(); + QR.captcha.setup(d.activeElement === QR.nodes.status); } else if (Conf['Persistent QR']) { post.rm(); if (Conf['Auto Hide QR']) { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index dda12916c..0d247213d 100644 Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js index 7b638bb46..f94b74df3 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.13.8.0 +// @version 1.13.8.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -151,7 +151,7 @@ docSet = function() { }; g = { - VERSION: '1.13.8.0', + VERSION: '1.13.8.1', NAMESPACE: '4chan X.', boards: {} }; @@ -21463,7 +21463,7 @@ QR = (function() { return $.event('QRDialogCreation', null, dialog); }, submit: function(e) { - var captcha, err, extra, filetag, formData, options, post, ref, thread, threadID, wasAuto; + var captcha, err, extra, filetag, formData, options, post, ref, thread, threadID; if (e != null) { e.preventDefault(); } @@ -21474,9 +21474,6 @@ QR = (function() { $.forceSync('cooldowns'); if (QR.cooldown.seconds) { QR.cooldown.auto = !QR.cooldown.auto; - if (QR.cooldown.auto) { - QR.captcha.setup(true); - } QR.status(); return; } @@ -21518,7 +21515,6 @@ QR = (function() { QR.error(err); return; } - wasAuto = QR.cooldown.auto; QR.cooldown.auto = QR.posts.length > 1; post.lock(); formData = { @@ -21577,10 +21573,7 @@ QR = (function() { } QR.req = $.ajax("https://sys.4chan.org/" + g.BOARD + "/post", options, extra); QR.req.progress = '...'; - QR.status(); - if (!wasAuto) { - return QR.captcha.setup(true); - } + return QR.status(); }, response: function() { var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; @@ -21656,6 +21649,7 @@ QR = (function() { })()); if (postsCount) { post.rm(); + QR.captcha.setup(d.activeElement === QR.nodes.status); } else if (Conf['Persistent QR']) { post.rm(); if (Conf['Auto Hide QR']) { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index b81d9dc0a..e18092543 100644 Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index 2f9d5c93b..2d30a552d 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.13.8.0 +// @version 1.13.8.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 64082067d..5030c23ad 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.13.8.0 +// @version 1.13.8.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -151,7 +151,7 @@ docSet = function() { }; g = { - VERSION: '1.13.8.0', + VERSION: '1.13.8.1', NAMESPACE: '4chan X.', boards: {} }; @@ -21463,7 +21463,7 @@ QR = (function() { return $.event('QRDialogCreation', null, dialog); }, submit: function(e) { - var captcha, err, extra, filetag, formData, options, post, ref, thread, threadID, wasAuto; + var captcha, err, extra, filetag, formData, options, post, ref, thread, threadID; if (e != null) { e.preventDefault(); } @@ -21474,9 +21474,6 @@ QR = (function() { $.forceSync('cooldowns'); if (QR.cooldown.seconds) { QR.cooldown.auto = !QR.cooldown.auto; - if (QR.cooldown.auto) { - QR.captcha.setup(true); - } QR.status(); return; } @@ -21518,7 +21515,6 @@ QR = (function() { QR.error(err); return; } - wasAuto = QR.cooldown.auto; QR.cooldown.auto = QR.posts.length > 1; post.lock(); formData = { @@ -21577,10 +21573,7 @@ QR = (function() { } QR.req = $.ajax("https://sys.4chan.org/" + g.BOARD + "/post", options, extra); QR.req.progress = '...'; - QR.status(); - if (!wasAuto) { - return QR.captcha.setup(true); - } + return QR.status(); }, response: function() { var URL, _, connErr, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID; @@ -21656,6 +21649,7 @@ QR = (function() { })()); if (postsCount) { post.rm(); + QR.captcha.setup(d.activeElement === QR.nodes.status); } else if (Conf['Persistent QR']) { post.rm(); if (Conf['Auto Hide QR']) { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index ce6fbaded..274dce9a8 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index bf7458e46..2e8856d48 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.xml b/builds/updates.xml index 26e0ca7ec..19b91553e 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index eb1bf8796..8832dad0e 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.13.8.0", - "date": "2017-02-07T20:07:59.893Z" + "version": "1.13.8.1", + "date": "2017-02-10T19:44:51.235Z" } \ No newline at end of file