Release 4chan X v1.11.1.1.

This commit is contained in:
ccd0 2015-06-22 13:47:01 -07:00
parent dcdb6afcbb
commit 68ebbf2151
13 changed files with 99 additions and 30 deletions

View File

@ -4,6 +4,9 @@ The links to individual versions below are to copies of the script with the upda
### v1.11.1
**v1.11.1.1** *(2015-06-22)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.1.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.1.1/builds/4chan-X-noupdate.crx "Chromium version")]
- Add `Use Recaptcha v2 in Reports` option to use the image selection captcha in the report window.
**v1.11.1.0** *(2015-06-22)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.1.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.1.0/builds/4chan-X-noupdate.crx "Chromium version")]
- Based on v1.11.0.9.
- Add partial support for Midori and other browsers whose userscript engines don't implement the Greasemonkey API. Some features will not work in these browsers.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.11.1.0
// @version 1.11.1.1
// @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.1.0
// @version 1.11.1.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -221,7 +221,7 @@
'Toggleable Thread Watcher': [true, 'Adds a shortcut for the thread watcher and hides the watcher by default.', 1],
'Mark New IPs': [false, 'Label each post from a new IP with the thread\'s current IP count.']
},
'Posting': {
'Posting and Captchas': {
'Quick Reply': [true, 'All-in-one form to reply, create threads, automate dumping and more.'],
'QR Shortcut': [true, 'Add a shortcut to the header to toggle the QR.', 1],
'Persistent QR': [true, 'The Quick reply won\'t disappear after posting.', 1],
@ -239,7 +239,8 @@
'Auto-load captcha': [false, 'Automatically load the captcha in the QR even if your post is empty.', 1],
'Post on Captcha Completion': [false, 'Submit the post immediately when the captcha is completed.', 1],
'Bottom QR Link': [true, 'Places a link on the bottom of threads to open the QR.', 1],
'Captcha Fixes': [true, 'Make captcha easier to use, especially with the keyboard.']
'Captcha Fixes': [true, 'Make captcha easier to use, especially with the keyboard.'],
'Use Recaptcha v2 in Reports': [false, 'Use the image selection captcha in the report window.']
},
'Quote Links': {
'Quote Backlinks': [true, 'Add quote backlinks.'],
@ -402,7 +403,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.1.0',
VERSION: '1.11.1.1',
NAMESPACE: '4chan X.',
boards: {}
};
@ -12281,7 +12282,7 @@
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
a.textContent = 'Report this post';
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
ReportLink.height = 200;
ReportLink.height = 180;
} else if (Conf['Archive Report']) {
a.textContent = 'Report to archive';
ReportLink.url = Redirect.to('report', {
@ -15917,7 +15918,10 @@
if (Conf['Archive Report']) {
Report.archive();
}
if ($.hasClass(doc, 'js-enabled')) {
if (Conf['Use Recaptcha v2 in Reports']) {
Report.captchaV2();
}
if (Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled')) {
return new MutationObserver(function() {
return Report.fit('.gc-bubbleDefault');
}).observe(d.body, {
@ -15929,6 +15933,25 @@
return Report.fit('body');
}
},
captchaV2: function() {
var container, lang, old, script, url;
if (!(old = $.id('captchaContainerAlt'))) {
return;
}
container = $.el('div', {
className: 'g-recaptcha'
});
container.dataset.sitekey = '6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc';
$.replace(old, container);
url = 'https://www.google.com/recaptcha/api.js';
if (lang = Conf['captchaLanguage'].trim()) {
url += "?hl=" + (encodeURIComponent(lang));
}
script = $.el('script', {
src: url
});
return $.add(d.head, script);
},
fit: function(selector) {
var dy, el;
if (!(el = $(selector, doc))) {
@ -15968,8 +15991,7 @@
$.add(d.body, [$.tn(' ['), link, $.tn(']')]);
if (types = $.id('reportTypes')) {
return $.on(types, 'change', function(e) {
var ref;
return $('form').action = (ref = e.target.value) === 'illegal' || ref === 'spam' ? '#redirect' : '';
return $('form').action = e.target.value === 'illegal' ? '#redirect' : '';
});
}
}

Binary file not shown.

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.11.1.0
// @version 1.11.1.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -220,7 +220,7 @@
'Toggleable Thread Watcher': [true, 'Adds a shortcut for the thread watcher and hides the watcher by default.', 1],
'Mark New IPs': [false, 'Label each post from a new IP with the thread\'s current IP count.']
},
'Posting': {
'Posting and Captchas': {
'Quick Reply': [true, 'All-in-one form to reply, create threads, automate dumping and more.'],
'QR Shortcut': [true, 'Add a shortcut to the header to toggle the QR.', 1],
'Persistent QR': [true, 'The Quick reply won\'t disappear after posting.', 1],
@ -238,7 +238,8 @@
'Auto-load captcha': [false, 'Automatically load the captcha in the QR even if your post is empty.', 1],
'Post on Captcha Completion': [false, 'Submit the post immediately when the captcha is completed.', 1],
'Bottom QR Link': [true, 'Places a link on the bottom of threads to open the QR.', 1],
'Captcha Fixes': [true, 'Make captcha easier to use, especially with the keyboard.']
'Captcha Fixes': [true, 'Make captcha easier to use, especially with the keyboard.'],
'Use Recaptcha v2 in Reports': [false, 'Use the image selection captcha in the report window.']
},
'Quote Links': {
'Quote Backlinks': [true, 'Add quote backlinks.'],
@ -401,7 +402,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.1.0',
VERSION: '1.11.1.1',
NAMESPACE: '4chan X.',
boards: {}
};
@ -12280,7 +12281,7 @@
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
a.textContent = 'Report this post';
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
ReportLink.height = 200;
ReportLink.height = 180;
} else if (Conf['Archive Report']) {
a.textContent = 'Report to archive';
ReportLink.url = Redirect.to('report', {
@ -15916,7 +15917,10 @@
if (Conf['Archive Report']) {
Report.archive();
}
if ($.hasClass(doc, 'js-enabled')) {
if (Conf['Use Recaptcha v2 in Reports']) {
Report.captchaV2();
}
if (Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled')) {
return new MutationObserver(function() {
return Report.fit('.gc-bubbleDefault');
}).observe(d.body, {
@ -15928,6 +15932,25 @@
return Report.fit('body');
}
},
captchaV2: function() {
var container, lang, old, script, url;
if (!(old = $.id('captchaContainerAlt'))) {
return;
}
container = $.el('div', {
className: 'g-recaptcha'
});
container.dataset.sitekey = '6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc';
$.replace(old, container);
url = 'https://www.google.com/recaptcha/api.js';
if (lang = Conf['captchaLanguage'].trim()) {
url += "?hl=" + (encodeURIComponent(lang));
}
script = $.el('script', {
src: url
});
return $.add(d.head, script);
},
fit: function(selector) {
var dy, el;
if (!(el = $(selector, doc))) {
@ -15967,8 +15990,7 @@
$.add(d.body, [$.tn(' ['), link, $.tn(']')]);
if (types = $.id('reportTypes')) {
return $.on(types, 'change', function(e) {
var ref;
return $('form').action = (ref = e.target.value) === 'illegal' || ref === 'spam' ? '#redirect' : '';
return $('form').action = e.target.value === 'illegal' ? '#redirect' : '';
});
}
}

Binary file not shown.

View File

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

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript
// ==UserScript==
// @name 4chan X
// @version 1.11.1.0
// @version 1.11.1.1
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -221,7 +221,7 @@
'Toggleable Thread Watcher': [true, 'Adds a shortcut for the thread watcher and hides the watcher by default.', 1],
'Mark New IPs': [false, 'Label each post from a new IP with the thread\'s current IP count.']
},
'Posting': {
'Posting and Captchas': {
'Quick Reply': [true, 'All-in-one form to reply, create threads, automate dumping and more.'],
'QR Shortcut': [true, 'Add a shortcut to the header to toggle the QR.', 1],
'Persistent QR': [true, 'The Quick reply won\'t disappear after posting.', 1],
@ -239,7 +239,8 @@
'Auto-load captcha': [false, 'Automatically load the captcha in the QR even if your post is empty.', 1],
'Post on Captcha Completion': [false, 'Submit the post immediately when the captcha is completed.', 1],
'Bottom QR Link': [true, 'Places a link on the bottom of threads to open the QR.', 1],
'Captcha Fixes': [true, 'Make captcha easier to use, especially with the keyboard.']
'Captcha Fixes': [true, 'Make captcha easier to use, especially with the keyboard.'],
'Use Recaptcha v2 in Reports': [false, 'Use the image selection captcha in the report window.']
},
'Quote Links': {
'Quote Backlinks': [true, 'Add quote backlinks.'],
@ -402,7 +403,7 @@
doc = d.documentElement;
g = {
VERSION: '1.11.1.0',
VERSION: '1.11.1.1',
NAMESPACE: '4chan X.',
boards: {}
};
@ -12281,7 +12282,7 @@
if (!(post.isDead || (post.thread.isDead && !post.thread.isArchived))) {
a.textContent = 'Report this post';
ReportLink.url = "//sys.4chan.org/" + post.board + "/imgboard.php?mode=report&no=" + post;
ReportLink.height = 200;
ReportLink.height = 180;
} else if (Conf['Archive Report']) {
a.textContent = 'Report to archive';
ReportLink.url = Redirect.to('report', {
@ -15917,7 +15918,10 @@
if (Conf['Archive Report']) {
Report.archive();
}
if ($.hasClass(doc, 'js-enabled')) {
if (Conf['Use Recaptcha v2 in Reports']) {
Report.captchaV2();
}
if (Conf['Use Recaptcha v2 in Reports'] && $.hasClass(doc, 'js-enabled')) {
return new MutationObserver(function() {
return Report.fit('.gc-bubbleDefault');
}).observe(d.body, {
@ -15929,6 +15933,25 @@
return Report.fit('body');
}
},
captchaV2: function() {
var container, lang, old, script, url;
if (!(old = $.id('captchaContainerAlt'))) {
return;
}
container = $.el('div', {
className: 'g-recaptcha'
});
container.dataset.sitekey = '6Ldp2bsSAAAAAAJ5uyx_lx34lJeEpTLVkP5k04qc';
$.replace(old, container);
url = 'https://www.google.com/recaptcha/api.js';
if (lang = Conf['captchaLanguage'].trim()) {
url += "?hl=" + (encodeURIComponent(lang));
}
script = $.el('script', {
src: url
});
return $.add(d.head, script);
},
fit: function(selector) {
var dy, el;
if (!(el = $(selector, doc))) {
@ -15968,8 +15991,7 @@
$.add(d.body, [$.tn(' ['), link, $.tn(']')]);
if (types = $.id('reportTypes')) {
return $.on(types, 'change', function(e) {
var ref;
return $('form').action = (ref = e.target.value) === 'illegal' || ref === 'spam' ? '#redirect' : '';
return $('form').action = e.target.value === 'illegal' ? '#redirect' : '';
});
}
}

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://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.11.1.0' />
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.11.1.1' />
</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://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.11.1.0' />
<updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.11.1.1' />
</app>
</gupdate>

View File

@ -3,8 +3,8 @@
"description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": {
"name": "4chan X",
"version": "1.11.1.0",
"date": "2015-06-22T18:09:14.422Z",
"version": "1.11.1.1",
"date": "2015-06-22T20:46:11.825Z",
"repo": "https://github.com/ccd0/4chan-x/",
"page": "https://github.com/ccd0/4chan-x",
"downloads": "https://ccd0.github.io/4chan-x/builds/",