diff --git a/CHANGELOG.md b/CHANGELOG.md index ebb8d41a6..70d981116 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ The links to individual versions below are to copies of the script with the upda ### v1.10.8 +**v1.10.8.10** *(2015-04-13)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.8.10/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.8.10/builds/4chan-X-noupdate.crx "Chromium version")] +- Fix unwanted focusing on the submit button if you focus on the comment field too soon after entering the captcha. + **v1.10.8.9** *(2015-04-13)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.8.9/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.10.8.9/builds/4chan-X-noupdate.crx "Chromium version")] - (fgts) Remove /fit/ from fgts archive. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 755e3ff6f..0aa8adce8 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 d51d96bc2..ae8e67bf0 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.10.8.9 +// @version 1.10.8.10 // @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 c78dc1b86..ec3a6db7e 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X beta -// @version 1.10.8.9 +// @version 1.10.8.10 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -396,7 +396,7 @@ doc = d.documentElement; g = { - VERSION: '1.10.8.9', + VERSION: '1.10.8.10', NAMESPACE: '4chan X.', boards: {} }; @@ -8132,7 +8132,7 @@ } }, save: function(pasted) { - var base1; + var base1, focus, ref, ref1; $.forceSync('captchas'); this.captchas.push({ response: $('textarea', this.nodes.container).value, @@ -8148,6 +8148,7 @@ } this.reload(); } else { + focus = ((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && ((ref1 = d.activeElement.src) != null ? ref1.slice(0, 38) : void 0) === 'https://www.google.com/recaptcha/api2/'; if (pasted) { this.destroy(); } else { @@ -8155,7 +8156,9 @@ base1.destroy = setTimeout(this.destroy.bind(this), 3 * $.SECOND); } } - QR.nodes.status.focus(); + if (focus) { + QR.nodes.status.focus(); + } } if (Conf['Post on Captcha Completion'] && !QR.cooldown.auto) { return QR.submit(); diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 47840c735..72343fe48 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 d2066020b..688559074 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.10.8.9 +// @version 1.10.8.10 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -395,7 +395,7 @@ doc = d.documentElement; g = { - VERSION: '1.10.8.9', + VERSION: '1.10.8.10', NAMESPACE: '4chan X.', boards: {} }; @@ -8131,7 +8131,7 @@ } }, save: function(pasted) { - var base1; + var base1, focus, ref, ref1; $.forceSync('captchas'); this.captchas.push({ response: $('textarea', this.nodes.container).value, @@ -8147,6 +8147,7 @@ } this.reload(); } else { + focus = ((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && ((ref1 = d.activeElement.src) != null ? ref1.slice(0, 38) : void 0) === 'https://www.google.com/recaptcha/api2/'; if (pasted) { this.destroy(); } else { @@ -8154,7 +8155,9 @@ base1.destroy = setTimeout(this.destroy.bind(this), 3 * $.SECOND); } } - QR.nodes.status.focus(); + if (focus) { + QR.nodes.status.focus(); + } } if (Conf['Post on Captcha Completion'] && !QR.cooldown.auto) { return QR.submit(); diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 2bd888c58..2f7f5e1ce 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 6f9db5ad5..20a800ebf 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.10.8.9 +// @version 1.10.8.10 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index ac91991ec..9f6db8a86 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.10.8.9 +// @version 1.10.8.10 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -396,7 +396,7 @@ doc = d.documentElement; g = { - VERSION: '1.10.8.9', + VERSION: '1.10.8.10', NAMESPACE: '4chan X.', boards: {} }; @@ -8132,7 +8132,7 @@ } }, save: function(pasted) { - var base1; + var base1, focus, ref, ref1; $.forceSync('captchas'); this.captchas.push({ response: $('textarea', this.nodes.container).value, @@ -8148,6 +8148,7 @@ } this.reload(); } else { + focus = ((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && ((ref1 = d.activeElement.src) != null ? ref1.slice(0, 38) : void 0) === 'https://www.google.com/recaptcha/api2/'; if (pasted) { this.destroy(); } else { @@ -8155,7 +8156,9 @@ base1.destroy = setTimeout(this.destroy.bind(this), 3 * $.SECOND); } } - QR.nodes.status.focus(); + if (focus) { + QR.nodes.status.focus(); + } } if (Conf['Post on Captcha Completion'] && !QR.cooldown.auto) { return QR.submit(); diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index f3ffaec7d..128e0a82e 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 a39527fa2..e5b8161a7 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 a97440e34..709f70a64 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index 6c6beb57f..bd924b3a7 100755 --- a/package.json +++ b/package.json @@ -3,8 +3,8 @@ "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X", - "version": "1.10.8.9", - "date": "2015-04-13T15:07:30.185Z", + "version": "1.10.8.10", + "date": "2015-04-14T03:57:38.704Z", "repo": "https://github.com/ccd0/4chan-x/", "page": "https://github.com/ccd0/4chan-x", "downloads": "https://ccd0.github.io/4chan-x/builds/",