Release 4chan X v1.11.16.4.

This commit is contained in:
ccd0 2015-11-14 14:51:32 -08:00
parent 1a55bf69aa
commit eed09d0a75
13 changed files with 168 additions and 48 deletions

View File

@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
### v1.11.16
**v1.11.16.4** *(2015-11-14)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.16.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.16.4/builds/4chan-X-noupdate.crx "Chromium version")]
- Report window fixes: Restore backspace to refresh, unhide audio captcha, change pass ad to complaint link, and add NCMEC link.
**v1.11.16.3** *(2015-11-14)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.16.3/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.16.3/builds/4chan-X-noupdate.crx "Chromium version")]
- Fix bug from v1.11.16.0 causing Quick Reply to stop working after an error.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.11.16.3
// @version 1.11.16.4
// @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.16.3
// @version 1.11.16.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.16.3',
VERSION: '1.11.16.4',
NAMESPACE: '4chan X.',
boards: {}
};
@ -960,16 +960,12 @@
}
})();
(function() {
var err;
try {
localStorage.getItem('x');
return $.hasStorage = true;
} catch (_error) {
err = _error;
return $.hasStorage = false;
}
})();
try {
localStorage.getItem('x');
$.hasStorage = true;
} catch (_error) {
$.hasStorage = false;
}
$.item = function(key, val) {
var item;
@ -16388,6 +16384,9 @@
Report = {
css: ":root:not(.js-enabled) #captchaContainerAlt {\n" +
" height: auto;\n" +
"}\n" +
"#captchaContainerAlt td:nth-child(2) {\n" +
" display: table-cell !important;\n" +
"}",
init: function() {
var match;
@ -16399,12 +16398,29 @@
return $.ready(this.ready);
},
ready: function() {
var link, passAd, prev, ref;
$.addStyle(Report.css);
if (Conf['Archive Report']) {
Report.archive();
}
link = $.el('a', {
href: 'https://report.cybertip.org/',
textContent: 'Report to NCMEC',
target: '_blank'
});
$.add(d.body, [$.tn(' ['), link, $.tn(']')]);
if ((passAd = $('a[href="https://www.4chan.org/pass"]'))) {
$.extend(passAd, {
textContent: 'Complain',
href: 'https://www.4chan-x.net/captchas.html'
});
passAd.parentNode.normalize();
if (((ref = (prev = passAd.previousSibling)) != null ? ref.nodeType : void 0) === Node.TEXT_NODE) {
prev.nodeValue = prev.nodeValue.replace(/4chan Pass[^\.]*\./i, 'reCAPTCHA malfunctioning?');
}
}
if (Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled')) {
return new MutationObserver(function() {
new MutationObserver(function() {
Report.fit('iframe[src^="https://www.google.com/recaptcha/api2/frame"]');
return Report.fit('body');
}).observe(d.body, {
@ -16413,7 +16429,30 @@
subtree: true
});
} else {
return Report.fit('body');
Report.fit('body');
}
if (!Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled') && d.cookie.indexOf('pass_enabled=1') < 0) {
$.onExists(d.body, '#recaptcha_image', true, function(image) {
$.global(function() {
return document.getElementById('recaptcha_image').removeEventListener('click', window.onAltCaptchaClick, false);
});
return $.on(image, 'click', function() {
if ($.id('recaptcha_challenge_image')) {
return $.global(function() {
return window.Recaptcha.reload();
});
}
});
});
return $.onExists(d.body, '#recaptcha_response_field', true, function(field) {
return $.on(field, 'keydown', function(e) {
if (e.keyCode === 8 && !field.value) {
return $.global(function() {
return window.Recaptcha.reload();
});
}
});
});
}
},
fit: function(selector) {

Binary file not shown.

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.11.16.3
// @version 1.11.16.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.16.3',
VERSION: '1.11.16.4',
NAMESPACE: '4chan X.',
boards: {}
};
@ -960,16 +960,12 @@
}
})();
(function() {
var err;
try {
localStorage.getItem('x');
return $.hasStorage = true;
} catch (_error) {
err = _error;
return $.hasStorage = false;
}
})();
try {
localStorage.getItem('x');
$.hasStorage = true;
} catch (_error) {
$.hasStorage = false;
}
$.item = function(key, val) {
var item;
@ -16388,6 +16384,9 @@
Report = {
css: ":root:not(.js-enabled) #captchaContainerAlt {\n" +
" height: auto;\n" +
"}\n" +
"#captchaContainerAlt td:nth-child(2) {\n" +
" display: table-cell !important;\n" +
"}",
init: function() {
var match;
@ -16399,12 +16398,29 @@
return $.ready(this.ready);
},
ready: function() {
var link, passAd, prev, ref;
$.addStyle(Report.css);
if (Conf['Archive Report']) {
Report.archive();
}
link = $.el('a', {
href: 'https://report.cybertip.org/',
textContent: 'Report to NCMEC',
target: '_blank'
});
$.add(d.body, [$.tn(' ['), link, $.tn(']')]);
if ((passAd = $('a[href="https://www.4chan.org/pass"]'))) {
$.extend(passAd, {
textContent: 'Complain',
href: 'https://www.4chan-x.net/captchas.html'
});
passAd.parentNode.normalize();
if (((ref = (prev = passAd.previousSibling)) != null ? ref.nodeType : void 0) === Node.TEXT_NODE) {
prev.nodeValue = prev.nodeValue.replace(/4chan Pass[^\.]*\./i, 'reCAPTCHA malfunctioning?');
}
}
if (Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled')) {
return new MutationObserver(function() {
new MutationObserver(function() {
Report.fit('iframe[src^="https://www.google.com/recaptcha/api2/frame"]');
return Report.fit('body');
}).observe(d.body, {
@ -16413,7 +16429,30 @@
subtree: true
});
} else {
return Report.fit('body');
Report.fit('body');
}
if (!Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled') && d.cookie.indexOf('pass_enabled=1') < 0) {
$.onExists(d.body, '#recaptcha_image', true, function(image) {
$.global(function() {
return document.getElementById('recaptcha_image').removeEventListener('click', window.onAltCaptchaClick, false);
});
return $.on(image, 'click', function() {
if ($.id('recaptcha_challenge_image')) {
return $.global(function() {
return window.Recaptcha.reload();
});
}
});
});
return $.onExists(d.body, '#recaptcha_response_field', true, function(field) {
return $.on(field, 'keydown', function(e) {
if (e.keyCode === 8 && !field.value) {
return $.global(function() {
return window.Recaptcha.reload();
});
}
});
});
}
},
fit: function(selector) {

Binary file not shown.

View File

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

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.11.16.3
// @version 1.11.16.4
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -433,7 +433,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.16.3',
VERSION: '1.11.16.4',
NAMESPACE: '4chan X.',
boards: {}
};
@ -960,16 +960,12 @@
}
})();
(function() {
var err;
try {
localStorage.getItem('x');
return $.hasStorage = true;
} catch (_error) {
err = _error;
return $.hasStorage = false;
}
})();
try {
localStorage.getItem('x');
$.hasStorage = true;
} catch (_error) {
$.hasStorage = false;
}
$.item = function(key, val) {
var item;
@ -16388,6 +16384,9 @@
Report = {
css: ":root:not(.js-enabled) #captchaContainerAlt {\n" +
" height: auto;\n" +
"}\n" +
"#captchaContainerAlt td:nth-child(2) {\n" +
" display: table-cell !important;\n" +
"}",
init: function() {
var match;
@ -16399,12 +16398,29 @@
return $.ready(this.ready);
},
ready: function() {
var link, passAd, prev, ref;
$.addStyle(Report.css);
if (Conf['Archive Report']) {
Report.archive();
}
link = $.el('a', {
href: 'https://report.cybertip.org/',
textContent: 'Report to NCMEC',
target: '_blank'
});
$.add(d.body, [$.tn(' ['), link, $.tn(']')]);
if ((passAd = $('a[href="https://www.4chan.org/pass"]'))) {
$.extend(passAd, {
textContent: 'Complain',
href: 'https://www.4chan-x.net/captchas.html'
});
passAd.parentNode.normalize();
if (((ref = (prev = passAd.previousSibling)) != null ? ref.nodeType : void 0) === Node.TEXT_NODE) {
prev.nodeValue = prev.nodeValue.replace(/4chan Pass[^\.]*\./i, 'reCAPTCHA malfunctioning?');
}
}
if (Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled')) {
return new MutationObserver(function() {
new MutationObserver(function() {
Report.fit('iframe[src^="https://www.google.com/recaptcha/api2/frame"]');
return Report.fit('body');
}).observe(d.body, {
@ -16413,7 +16429,30 @@
subtree: true
});
} else {
return Report.fit('body');
Report.fit('body');
}
if (!Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled') && d.cookie.indexOf('pass_enabled=1') < 0) {
$.onExists(d.body, '#recaptcha_image', true, function(image) {
$.global(function() {
return document.getElementById('recaptcha_image').removeEventListener('click', window.onAltCaptchaClick, false);
});
return $.on(image, 'click', function() {
if ($.id('recaptcha_challenge_image')) {
return $.global(function() {
return window.Recaptcha.reload();
});
}
});
});
return $.onExists(d.body, '#recaptcha_response_field', true, function(field) {
return $.on(field, 'keydown', function(e) {
if (e.keyCode === 8 && !field.value) {
return $.global(function() {
return window.Recaptcha.reload();
});
}
});
});
}
},
fit: function(selector) {

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.16.3' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.16.4' />
</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.16.3' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.16.4' />
</app>
</gupdate>

View File

@ -1,4 +1,4 @@
{
"version": "1.11.16.3",
"date": "2015-11-14T09:01:12.620Z"
"version": "1.11.16.4",
"date": "2015-11-14T22:50:42.534Z"
}