diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0bc7368b3..edaac2593 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.17
+**v1.11.17.10** *(2015-11-25)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.10/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.10/builds/4chan-X-noupdate.crx "Chromium version")]
+- Fix captcha focusing bug.
+
**v1.11.17.9** *(2015-11-24)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.9/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.9/builds/4chan-X-noupdate.crx "Chromium version")]
- Support solving 4x4 image captchas with keys in 7-0-/-M square.
diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx
index e6f7c567a..6954790c8 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 a82d078a7..680684db6 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.11.17.9
+// @version 1.11.17.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 ede303647..94c41f4ed 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.11.17.9
+// @version 1.11.17.10
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
- VERSION: '1.11.17.9',
+ VERSION: '1.11.17.10',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -7808,7 +7808,7 @@
return QR.status();
},
response: function() {
- var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID;
+ var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, ref3, req, resDoc, seconds, threadID;
req = QR.req;
delete QR.req;
post = QR.posts[0];
@@ -7851,7 +7851,7 @@
} else {
QR.cooldown.auto = false;
}
- QR.captcha.setup(QR.cooldown.auto && d.activeElement === QR.nodes.status);
+ QR.captcha.setup(QR.cooldown.auto && ((ref1 = d.activeElement) === QR.nodes.status || ref1 === d.body));
if (QR.captcha.isEnabled && !QR.captcha.captchas.length) {
QR.cooldown.auto = false;
}
@@ -7864,12 +7864,12 @@
if (Conf['Posting Success Notifications']) {
QR.notifications.push(new Notice('success', h1.textContent, 5));
}
- ref1 = h1.nextSibling.textContent.match(/thread:(\d+),no:(\d+)/), _ = ref1[0], threadID = ref1[1], postID = ref1[2];
+ ref2 = h1.nextSibling.textContent.match(/thread:(\d+),no:(\d+)/), _ = ref2[0], threadID = ref2[1], postID = ref2[2];
postID = +postID;
threadID = +threadID || postID;
isReply = threadID !== postID;
- if ((ref2 = QR.db) != null) {
- ref2.set({
+ if ((ref3 = QR.db) != null) {
+ ref3.set({
boardID: g.BOARD.ID,
threadID: threadID,
postID: postID,
@@ -7889,10 +7889,10 @@
postsCount = QR.posts.length - 1;
QR.cooldown.auto = postsCount && isReply;
lastPostToThread = !((function() {
- var k, len1, p, ref3;
- ref3 = QR.posts.slice(1);
- for (k = 0, len1 = ref3.length; k < len1; k++) {
- p = ref3[k];
+ var k, len1, p, ref4;
+ ref4 = QR.posts.slice(1);
+ for (k = 0, len1 = ref4.length; k < len1; k++) {
+ p = ref4[k];
if (p.thread === post.thread) {
return true;
}
@@ -8317,6 +8317,7 @@
}
this.create();
if (focus) {
+ $.addClass(QR.nodes.el, 'focus');
return this.nodes.input.focus();
}
},
@@ -8610,6 +8611,7 @@
return;
}
if (focus) {
+ $.addClass(QR.nodes.el, 'focus');
this.nodes.counter.focus();
}
if (this.timeouts.destroy) {
diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx
index ffca9fcdb..5c2236eec 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 f5a75a067..1e335930a 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.11.17.9
+// @version 1.11.17.10
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
- VERSION: '1.11.17.9',
+ VERSION: '1.11.17.10',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -7808,7 +7808,7 @@
return QR.status();
},
response: function() {
- var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID;
+ var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, ref3, req, resDoc, seconds, threadID;
req = QR.req;
delete QR.req;
post = QR.posts[0];
@@ -7851,7 +7851,7 @@
} else {
QR.cooldown.auto = false;
}
- QR.captcha.setup(QR.cooldown.auto && d.activeElement === QR.nodes.status);
+ QR.captcha.setup(QR.cooldown.auto && ((ref1 = d.activeElement) === QR.nodes.status || ref1 === d.body));
if (QR.captcha.isEnabled && !QR.captcha.captchas.length) {
QR.cooldown.auto = false;
}
@@ -7864,12 +7864,12 @@
if (Conf['Posting Success Notifications']) {
QR.notifications.push(new Notice('success', h1.textContent, 5));
}
- ref1 = h1.nextSibling.textContent.match(/thread:(\d+),no:(\d+)/), _ = ref1[0], threadID = ref1[1], postID = ref1[2];
+ ref2 = h1.nextSibling.textContent.match(/thread:(\d+),no:(\d+)/), _ = ref2[0], threadID = ref2[1], postID = ref2[2];
postID = +postID;
threadID = +threadID || postID;
isReply = threadID !== postID;
- if ((ref2 = QR.db) != null) {
- ref2.set({
+ if ((ref3 = QR.db) != null) {
+ ref3.set({
boardID: g.BOARD.ID,
threadID: threadID,
postID: postID,
@@ -7889,10 +7889,10 @@
postsCount = QR.posts.length - 1;
QR.cooldown.auto = postsCount && isReply;
lastPostToThread = !((function() {
- var k, len1, p, ref3;
- ref3 = QR.posts.slice(1);
- for (k = 0, len1 = ref3.length; k < len1; k++) {
- p = ref3[k];
+ var k, len1, p, ref4;
+ ref4 = QR.posts.slice(1);
+ for (k = 0, len1 = ref4.length; k < len1; k++) {
+ p = ref4[k];
if (p.thread === post.thread) {
return true;
}
@@ -8317,6 +8317,7 @@
}
this.create();
if (focus) {
+ $.addClass(QR.nodes.el, 'focus');
return this.nodes.input.focus();
}
},
@@ -8610,6 +8611,7 @@
return;
}
if (focus) {
+ $.addClass(QR.nodes.el, 'focus');
this.nodes.counter.focus();
}
if (this.timeouts.destroy) {
diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx
index 23a184183..473e233d6 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 c65c22a4f..9df13aff9 100644
--- a/builds/4chan-X.meta.js
+++ b/builds/4chan-X.meta.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
-// @version 1.11.17.9
+// @version 1.11.17.10
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js
index ae3e81b16..293a21c2f 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.11.17.9
+// @version 1.11.17.10
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
- VERSION: '1.11.17.9',
+ VERSION: '1.11.17.10',
NAMESPACE: '4chan X.',
boards: {}
};
@@ -7808,7 +7808,7 @@
return QR.status();
},
response: function() {
- var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, req, resDoc, seconds, threadID;
+ var URL, _, ban, err, h1, isReply, lastPostToThread, m, open, post, postID, postsCount, ref, ref1, ref2, ref3, req, resDoc, seconds, threadID;
req = QR.req;
delete QR.req;
post = QR.posts[0];
@@ -7851,7 +7851,7 @@
} else {
QR.cooldown.auto = false;
}
- QR.captcha.setup(QR.cooldown.auto && d.activeElement === QR.nodes.status);
+ QR.captcha.setup(QR.cooldown.auto && ((ref1 = d.activeElement) === QR.nodes.status || ref1 === d.body));
if (QR.captcha.isEnabled && !QR.captcha.captchas.length) {
QR.cooldown.auto = false;
}
@@ -7864,12 +7864,12 @@
if (Conf['Posting Success Notifications']) {
QR.notifications.push(new Notice('success', h1.textContent, 5));
}
- ref1 = h1.nextSibling.textContent.match(/thread:(\d+),no:(\d+)/), _ = ref1[0], threadID = ref1[1], postID = ref1[2];
+ ref2 = h1.nextSibling.textContent.match(/thread:(\d+),no:(\d+)/), _ = ref2[0], threadID = ref2[1], postID = ref2[2];
postID = +postID;
threadID = +threadID || postID;
isReply = threadID !== postID;
- if ((ref2 = QR.db) != null) {
- ref2.set({
+ if ((ref3 = QR.db) != null) {
+ ref3.set({
boardID: g.BOARD.ID,
threadID: threadID,
postID: postID,
@@ -7889,10 +7889,10 @@
postsCount = QR.posts.length - 1;
QR.cooldown.auto = postsCount && isReply;
lastPostToThread = !((function() {
- var k, len1, p, ref3;
- ref3 = QR.posts.slice(1);
- for (k = 0, len1 = ref3.length; k < len1; k++) {
- p = ref3[k];
+ var k, len1, p, ref4;
+ ref4 = QR.posts.slice(1);
+ for (k = 0, len1 = ref4.length; k < len1; k++) {
+ p = ref4[k];
if (p.thread === post.thread) {
return true;
}
@@ -8317,6 +8317,7 @@
}
this.create();
if (focus) {
+ $.addClass(QR.nodes.el, 'focus');
return this.nodes.input.focus();
}
},
@@ -8610,6 +8611,7 @@
return;
}
if (focus) {
+ $.addClass(QR.nodes.el, 'focus');
this.nodes.counter.focus();
}
if (this.timeouts.destroy) {
diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip
index 6e407f059..b3e7f0f9b 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 d8f654ed8..061fb6bb2 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 8386c27b1..1a6e33bdd 100644
--- a/builds/updates.xml
+++ b/builds/updates.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/version.json b/version.json
index 0d3aece3f..ef2777597 100644
--- a/version.json
+++ b/version.json
@@ -1,4 +1,4 @@
{
- "version": "1.11.17.9",
- "date": "2015-11-25T05:45:29.594Z"
+ "version": "1.11.17.10",
+ "date": "2015-11-26T03:13:39.039Z"
}