Release 4chan X v1.11.17.3.

This commit is contained in:
ccd0 2015-11-17 22:28:50 -08:00
parent 9738a4f0d0
commit ab97078638
13 changed files with 84 additions and 63 deletions

View File

@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.17
**v1.11.17.3** *(2015-11-17)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.3/builds/4chan-X-noupdate.crx "Chromium version")]
- Minor captcha fixes.
**v1.11.17.2** *(2015-11-15)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.2/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.17.2/builds/4chan-X-noupdate.crx "Chromium version")]
- Merge v1.11.16.9: Bring back scrolling prevention when captcha is focused.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.11.17.2
// @version 1.11.17.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X beta
// @version 1.11.17.2
// @version 1.11.17.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.17.2',
VERSION: '1.11.17.3',
NAMESPACE: '4chan X.',
boards: {}
};
@ -7198,9 +7198,6 @@
el = err;
el.removeAttribute('style');
}
if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) {
QR.captcha.setup(true);
}
notice = new Notice('warning', el);
QR.notifications.push(notice);
if (!Header.areNotificationsEnabled) {
@ -7715,6 +7712,7 @@
captcha = QR.captcha.getOne();
if (!captcha) {
err = 'No valid captcha.';
QR.captcha.setup(true);
}
}
QR.cleanNotifications();
@ -7848,12 +7846,12 @@
} else {
QR.cooldown.addDelay(post, seconds);
}
QR.captcha.setup(d.activeElement === QR.nodes.status);
} else {
QR.cooldown.auto = false;
}
QR.status();
QR.error(err);
QR.captcha.setup(true);
return;
}
h1 = $('h1', resDoc);
@ -7897,7 +7895,7 @@
QR.close();
} else {
post.rm();
QR.captcha.setup(d.activeElement === QR.nodes.status);
QR.captcha.setup(true);
}
QR.cooldown.add(threadID, postID);
URL = threadID === postID ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID : g.VIEW === 'index' && lastPostToThread && Conf['Open Post in New Tab'] ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID + "#p" + postID : void 0;
@ -8293,11 +8291,12 @@
onNewPost: function() {},
onPostChange: function() {},
setup: function(focus, force) {
var ref;
if (!(this.isEnabled && (force || this.needed()))) {
return;
}
this.create();
if (focus) {
if (focus && ((ref = d.activeElement) === QR.nodes.status || ref === d.body)) {
return this.nodes.input.focus();
}
},
@ -8381,6 +8380,9 @@
response: response,
timeout: this.timeout
});
this.captchas.sort(function(a, b) {
return a.timeout - b.timeout;
});
this.count();
this.destroy();
this.setup(false, true);
@ -8446,7 +8448,11 @@
}
})();
this.nodes.input.placeholder = placeholder;
return this.nodes.input.alt = count;
this.nodes.input.alt = count;
clearTimeout(this.timer);
if (count) {
return this.timer = setTimeout(this.clear.bind(this), this.captchas[0].timeout - Date.now());
}
},
reload: function(focus) {
$.globalEval('if (window.Recaptcha.type === "image") {\n window.Recaptcha.reload();\n} else {\n window.Recaptcha.switch_type("image");\n}\nwindow.Recaptcha.should_focus = false;');
@ -8538,7 +8544,6 @@
});
}
},
shouldFocus: false,
timeouts: {},
postsCount: 0,
noscriptURL: function() {
@ -8580,12 +8585,12 @@
}
},
setup: function(focus, force) {
var iframe;
var iframe, ref;
if (!(this.isEnabled && (this.needed() || force))) {
return;
}
if (focus && !QR.inBubble()) {
this.shouldFocus = true;
if (focus && ((ref = d.activeElement) === QR.nodes.status || ref === d.body)) {
this.nodes.counter.focus();
}
if (this.timeouts.destroy) {
clearTimeout(this.timeouts.destroy);
@ -8593,10 +8598,9 @@
return this.reload();
}
if (this.nodes.container) {
if (this.shouldFocus && (iframe = $('iframe', this.nodes.container))) {
if (d.activeElement === this.nodes.counter && (iframe = $('iframe', this.nodes.container))) {
iframe.focus();
QR.focus();
delete this.shouldFocus;
}
return;
}
@ -8649,10 +8653,9 @@
QR.nodes.el.style.top = null;
QR.nodes.el.style.bottom = '0px';
}
if (this.shouldFocus) {
if (d.activeElement === this.nodes.counter) {
iframe.focus();
}
this.shouldFocus = false;
return $.global(function() {
var f;
f = document.querySelector('#qr iframe');
@ -8712,13 +8715,16 @@
response: token || $('textarea', this.nodes.container).value,
timeout: Date.now() + this.lifetime
});
this.captchas.sort(function(a, b) {
return a.timeout - b.timeout;
});
$.set('captchas', this.captchas);
this.count();
focus = ((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && /https?:\/\/www\.google\.com\/recaptcha\//.test(d.activeElement.src);
if (this.needed()) {
if (focus) {
if (QR.cooldown.auto || Conf['Post on Captcha Completion']) {
this.shouldFocus = true;
this.nodes.counter.focus();
} else {
QR.nodes.status.focus();
}
@ -8760,7 +8766,7 @@
this.captchas = this.captchas.slice(i);
this.count();
$.set('captchas', this.captchas);
return this.setup(d.activeElement === QR.nodes.status);
return this.setup(true);
},
count: function() {
this.nodes.counter.textContent = "Captchas: " + this.captchas.length;

Binary file not shown.

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.11.17.2
// @version 1.11.17.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.17.2',
VERSION: '1.11.17.3',
NAMESPACE: '4chan X.',
boards: {}
};
@ -7198,9 +7198,6 @@
el = err;
el.removeAttribute('style');
}
if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) {
QR.captcha.setup(true);
}
notice = new Notice('warning', el);
QR.notifications.push(notice);
if (!Header.areNotificationsEnabled) {
@ -7715,6 +7712,7 @@
captcha = QR.captcha.getOne();
if (!captcha) {
err = 'No valid captcha.';
QR.captcha.setup(true);
}
}
QR.cleanNotifications();
@ -7848,12 +7846,12 @@
} else {
QR.cooldown.addDelay(post, seconds);
}
QR.captcha.setup(d.activeElement === QR.nodes.status);
} else {
QR.cooldown.auto = false;
}
QR.status();
QR.error(err);
QR.captcha.setup(true);
return;
}
h1 = $('h1', resDoc);
@ -7897,7 +7895,7 @@
QR.close();
} else {
post.rm();
QR.captcha.setup(d.activeElement === QR.nodes.status);
QR.captcha.setup(true);
}
QR.cooldown.add(threadID, postID);
URL = threadID === postID ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID : g.VIEW === 'index' && lastPostToThread && Conf['Open Post in New Tab'] ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID + "#p" + postID : void 0;
@ -8293,11 +8291,12 @@
onNewPost: function() {},
onPostChange: function() {},
setup: function(focus, force) {
var ref;
if (!(this.isEnabled && (force || this.needed()))) {
return;
}
this.create();
if (focus) {
if (focus && ((ref = d.activeElement) === QR.nodes.status || ref === d.body)) {
return this.nodes.input.focus();
}
},
@ -8381,6 +8380,9 @@
response: response,
timeout: this.timeout
});
this.captchas.sort(function(a, b) {
return a.timeout - b.timeout;
});
this.count();
this.destroy();
this.setup(false, true);
@ -8446,7 +8448,11 @@
}
})();
this.nodes.input.placeholder = placeholder;
return this.nodes.input.alt = count;
this.nodes.input.alt = count;
clearTimeout(this.timer);
if (count) {
return this.timer = setTimeout(this.clear.bind(this), this.captchas[0].timeout - Date.now());
}
},
reload: function(focus) {
$.globalEval('if (window.Recaptcha.type === "image") {\n window.Recaptcha.reload();\n} else {\n window.Recaptcha.switch_type("image");\n}\nwindow.Recaptcha.should_focus = false;');
@ -8538,7 +8544,6 @@
});
}
},
shouldFocus: false,
timeouts: {},
postsCount: 0,
noscriptURL: function() {
@ -8580,12 +8585,12 @@
}
},
setup: function(focus, force) {
var iframe;
var iframe, ref;
if (!(this.isEnabled && (this.needed() || force))) {
return;
}
if (focus && !QR.inBubble()) {
this.shouldFocus = true;
if (focus && ((ref = d.activeElement) === QR.nodes.status || ref === d.body)) {
this.nodes.counter.focus();
}
if (this.timeouts.destroy) {
clearTimeout(this.timeouts.destroy);
@ -8593,10 +8598,9 @@
return this.reload();
}
if (this.nodes.container) {
if (this.shouldFocus && (iframe = $('iframe', this.nodes.container))) {
if (d.activeElement === this.nodes.counter && (iframe = $('iframe', this.nodes.container))) {
iframe.focus();
QR.focus();
delete this.shouldFocus;
}
return;
}
@ -8649,10 +8653,9 @@
QR.nodes.el.style.top = null;
QR.nodes.el.style.bottom = '0px';
}
if (this.shouldFocus) {
if (d.activeElement === this.nodes.counter) {
iframe.focus();
}
this.shouldFocus = false;
return $.global(function() {
var f;
f = document.querySelector('#qr iframe');
@ -8712,13 +8715,16 @@
response: token || $('textarea', this.nodes.container).value,
timeout: Date.now() + this.lifetime
});
this.captchas.sort(function(a, b) {
return a.timeout - b.timeout;
});
$.set('captchas', this.captchas);
this.count();
focus = ((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && /https?:\/\/www\.google\.com\/recaptcha\//.test(d.activeElement.src);
if (this.needed()) {
if (focus) {
if (QR.cooldown.auto || Conf['Post on Captcha Completion']) {
this.shouldFocus = true;
this.nodes.counter.focus();
} else {
QR.nodes.status.focus();
}
@ -8760,7 +8766,7 @@
this.captchas = this.captchas.slice(i);
this.count();
$.set('captchas', this.captchas);
return this.setup(d.activeElement === QR.nodes.status);
return this.setup(true);
},
count: function() {
this.nodes.counter.textContent = "Captchas: " + this.captchas.length;

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.11.17.2
// @version 1.11.17.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.11.17.2
// @version 1.11.17.3
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.17.2',
VERSION: '1.11.17.3',
NAMESPACE: '4chan X.',
boards: {}
};
@ -7198,9 +7198,6 @@
el = err;
el.removeAttribute('style');
}
if (QR.captcha.isEnabled && /captcha|verification/i.test(el.textContent)) {
QR.captcha.setup(true);
}
notice = new Notice('warning', el);
QR.notifications.push(notice);
if (!Header.areNotificationsEnabled) {
@ -7715,6 +7712,7 @@
captcha = QR.captcha.getOne();
if (!captcha) {
err = 'No valid captcha.';
QR.captcha.setup(true);
}
}
QR.cleanNotifications();
@ -7848,12 +7846,12 @@
} else {
QR.cooldown.addDelay(post, seconds);
}
QR.captcha.setup(d.activeElement === QR.nodes.status);
} else {
QR.cooldown.auto = false;
}
QR.status();
QR.error(err);
QR.captcha.setup(true);
return;
}
h1 = $('h1', resDoc);
@ -7897,7 +7895,7 @@
QR.close();
} else {
post.rm();
QR.captcha.setup(d.activeElement === QR.nodes.status);
QR.captcha.setup(true);
}
QR.cooldown.add(threadID, postID);
URL = threadID === postID ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID : g.VIEW === 'index' && lastPostToThread && Conf['Open Post in New Tab'] ? window.location.origin + "/" + g.BOARD + "/thread/" + threadID + "#p" + postID : void 0;
@ -8293,11 +8291,12 @@
onNewPost: function() {},
onPostChange: function() {},
setup: function(focus, force) {
var ref;
if (!(this.isEnabled && (force || this.needed()))) {
return;
}
this.create();
if (focus) {
if (focus && ((ref = d.activeElement) === QR.nodes.status || ref === d.body)) {
return this.nodes.input.focus();
}
},
@ -8381,6 +8380,9 @@
response: response,
timeout: this.timeout
});
this.captchas.sort(function(a, b) {
return a.timeout - b.timeout;
});
this.count();
this.destroy();
this.setup(false, true);
@ -8446,7 +8448,11 @@
}
})();
this.nodes.input.placeholder = placeholder;
return this.nodes.input.alt = count;
this.nodes.input.alt = count;
clearTimeout(this.timer);
if (count) {
return this.timer = setTimeout(this.clear.bind(this), this.captchas[0].timeout - Date.now());
}
},
reload: function(focus) {
$.globalEval('if (window.Recaptcha.type === "image") {\n window.Recaptcha.reload();\n} else {\n window.Recaptcha.switch_type("image");\n}\nwindow.Recaptcha.should_focus = false;');
@ -8538,7 +8544,6 @@
});
}
},
shouldFocus: false,
timeouts: {},
postsCount: 0,
noscriptURL: function() {
@ -8580,12 +8585,12 @@
}
},
setup: function(focus, force) {
var iframe;
var iframe, ref;
if (!(this.isEnabled && (this.needed() || force))) {
return;
}
if (focus && !QR.inBubble()) {
this.shouldFocus = true;
if (focus && ((ref = d.activeElement) === QR.nodes.status || ref === d.body)) {
this.nodes.counter.focus();
}
if (this.timeouts.destroy) {
clearTimeout(this.timeouts.destroy);
@ -8593,10 +8598,9 @@
return this.reload();
}
if (this.nodes.container) {
if (this.shouldFocus && (iframe = $('iframe', this.nodes.container))) {
if (d.activeElement === this.nodes.counter && (iframe = $('iframe', this.nodes.container))) {
iframe.focus();
QR.focus();
delete this.shouldFocus;
}
return;
}
@ -8649,10 +8653,9 @@
QR.nodes.el.style.top = null;
QR.nodes.el.style.bottom = '0px';
}
if (this.shouldFocus) {
if (d.activeElement === this.nodes.counter) {
iframe.focus();
}
this.shouldFocus = false;
return $.global(function() {
var f;
f = document.querySelector('#qr iframe');
@ -8712,13 +8715,16 @@
response: token || $('textarea', this.nodes.container).value,
timeout: Date.now() + this.lifetime
});
this.captchas.sort(function(a, b) {
return a.timeout - b.timeout;
});
$.set('captchas', this.captchas);
this.count();
focus = ((ref = d.activeElement) != null ? ref.nodeName : void 0) === 'IFRAME' && /https?:\/\/www\.google\.com\/recaptcha\//.test(d.activeElement.src);
if (this.needed()) {
if (focus) {
if (QR.cooldown.auto || Conf['Post on Captcha Completion']) {
this.shouldFocus = true;
this.nodes.counter.focus();
} else {
QR.nodes.status.focus();
}
@ -8760,7 +8766,7 @@
this.captchas = this.captchas.slice(i);
this.count();
$.set('captchas', this.captchas);
return this.setup(d.activeElement === QR.nodes.status);
return this.setup(true);
},
count: function() {
this.nodes.counter.textContent = "Captchas: " + this.captchas.length;

Binary file not shown.

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.17.2' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.17.3' />
</app>
</gupdate>

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.17.2' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.17.3' />
</app>
</gupdate>

View File

@ -1,4 +1,4 @@
{
"version": "1.11.17.2",
"date": "2015-11-16T07:50:49.812Z"
"version": "1.11.17.3",
"date": "2015-11-18T06:28:00.317Z"
}