Release 4chan X v1.7.27.

This commit is contained in:
ccd0 2014-05-02 16:19:30 -07:00
parent 4ca58ff430
commit f6a5fce277
9 changed files with 27 additions and 24 deletions

View File

@ -1,3 +1,6 @@
### v1.7.27
*2014-05-02*
**ccd0** **ccd0**
- Update due to more Recaptcha changes. - Update due to more Recaptcha changes.

View File

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

View File

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

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.7.26 // @version 1.7.27
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.7.26 - 2014-05-02 * 4chan X - Version 1.7.27 - 2014-05-02
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -372,7 +372,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.7.26', VERSION: '1.7.27',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6658,6 +6658,9 @@
return QR.captcha.clear(); return QR.captcha.clear();
}); });
$.sync('captchas', this.sync); $.sync('captchas', this.sync);
new MutationObserver(this.afterSetup).observe($.id('captchaContainer'), {
childList: true
});
this.beforeSetup(); this.beforeSetup();
return this.afterSetup(); return this.afterSetup();
}, },
@ -6668,11 +6671,7 @@
input.value = ''; input.value = '';
input.placeholder = 'Focus to load reCAPTCHA'; input.placeholder = 'Focus to load reCAPTCHA';
this.count(); this.count();
$.on(input, 'focus', this.setup); return $.on(input, 'focus', this.setup);
this.setupObserver = new MutationObserver(this.afterSetup);
return this.setupObserver.observe($.id('captchaContainer'), {
childList: true
});
}, },
setup: function() { setup: function() {
return $.globalEval('loadRecaptcha()'); return $.globalEval('loadRecaptcha()');
@ -6682,8 +6681,9 @@
if (!(challenge = $.id('recaptcha_challenge_field_holder'))) { if (!(challenge = $.id('recaptcha_challenge_field_holder'))) {
return; return;
} }
QR.captcha.setupObserver.disconnect(); if (challenge === QR.captcha.nodes.challenge) {
delete QR.captcha.setupObserver; return;
}
setLifetime = function(e) { setLifetime = function(e) {
return QR.captcha.lifetime = e.detail; return QR.captcha.lifetime = e.detail;
}; };

Binary file not shown.

View File

@ -1,6 +1,6 @@
{ {
"name": "4chan X", "name": "4chan X",
"version": "1.7.26", "version": "1.7.27",
"manifest_version": 2, "manifest_version": 2,
"description": "Cross-browser userscript for maximum lurking on 4chan.", "description": "Cross-browser userscript for maximum lurking on 4chan.",
"icons": { "icons": {

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.7.26 - 2014-05-02 * 4chan X - Version 1.7.27 - 2014-05-02
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -348,7 +348,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.7.26', VERSION: '1.7.27',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6683,6 +6683,9 @@
return QR.captcha.clear(); return QR.captcha.clear();
}); });
$.sync('captchas', this.sync); $.sync('captchas', this.sync);
new MutationObserver(this.afterSetup).observe($.id('captchaContainer'), {
childList: true
});
this.beforeSetup(); this.beforeSetup();
return this.afterSetup(); return this.afterSetup();
}, },
@ -6693,11 +6696,7 @@
input.value = ''; input.value = '';
input.placeholder = 'Focus to load reCAPTCHA'; input.placeholder = 'Focus to load reCAPTCHA';
this.count(); this.count();
$.on(input, 'focus', this.setup); return $.on(input, 'focus', this.setup);
this.setupObserver = new MutationObserver(this.afterSetup);
return this.setupObserver.observe($.id('captchaContainer'), {
childList: true
});
}, },
setup: function() { setup: function() {
return $.globalEval('loadRecaptcha()'); return $.globalEval('loadRecaptcha()');
@ -6707,8 +6706,9 @@
if (!(challenge = $.id('recaptcha_challenge_field_holder'))) { if (!(challenge = $.id('recaptcha_challenge_field_holder'))) {
return; return;
} }
QR.captcha.setupObserver.disconnect(); if (challenge === QR.captcha.nodes.challenge) {
delete QR.captcha.setupObserver; return;
}
setLifetime = function(e) { setLifetime = function(e) {
return QR.captcha.lifetime = e.detail; return QR.captcha.lifetime = e.detail;
}; };

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "4chan-X", "name": "4chan-X",
"version": "1.7.26", "version": "1.7.27",
"description": "Cross-browser userscript for maximum lurking on 4chan.", "description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": { "meta": {
"name": "4chan X", "name": "4chan X",