Release 4chan X v1.11.12.7.
This commit is contained in:
parent
fa0dc52fb9
commit
54f545e87b
@ -4,6 +4,10 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor
|
|||||||
|
|
||||||
### v1.11.12
|
### v1.11.12
|
||||||
|
|
||||||
|
**v1.11.12.7** *(2015-10-13)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.12.7/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.12.7/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
|
- Add keybind for `[sjis]` tags (default: `Alt+a`).
|
||||||
|
- Update max comment length on /jp/ (now 5000, read from board).
|
||||||
|
|
||||||
**v1.11.12.6** *(2015-10-12)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.12.6/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.12.6/builds/4chan-X-noupdate.crx "Chromium version")]
|
**v1.11.12.6** *(2015-10-12)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.12.6/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.12.6/builds/4chan-X-noupdate.crx "Chromium version")]
|
||||||
- (fgts) Update archive list: Add /gd/, /out/, /po/ to fgts.
|
- (fgts) Update archive list: Add /gd/, /out/, /po/ to fgts.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.11.12.6
|
// @version 1.11.12.7
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X beta
|
// @name 4chan X beta
|
||||||
// @version 1.11.12.6
|
// @version 1.11.12.7
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -356,6 +356,7 @@
|
|||||||
'Code tags': ['Alt+c', 'Insert code tags.'],
|
'Code tags': ['Alt+c', 'Insert code tags.'],
|
||||||
'Eqn tags': ['Alt+e', 'Insert eqn tags.'],
|
'Eqn tags': ['Alt+e', 'Insert eqn tags.'],
|
||||||
'Math tags': ['Alt+m', 'Insert math tags.'],
|
'Math tags': ['Alt+m', 'Insert math tags.'],
|
||||||
|
'SJIS tags': ['Alt+a', 'Insert SJIS tags.'],
|
||||||
'Toggle sage': ['Alt+s', 'Toggle sage in options field.'],
|
'Toggle sage': ['Alt+s', 'Toggle sage in options field.'],
|
||||||
'Submit QR': ['Ctrl+Enter', 'Submit post.'],
|
'Submit QR': ['Ctrl+Enter', 'Submit post.'],
|
||||||
'Watch': ['w', 'Watch thread.'],
|
'Watch': ['w', 'Watch thread.'],
|
||||||
@ -413,7 +414,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.12.6',
|
VERSION: '1.11.12.7',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -7230,8 +7231,8 @@
|
|||||||
counter = QR.nodes.charCount;
|
counter = QR.nodes.charCount;
|
||||||
count = QR.nodes.com.value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length;
|
count = QR.nodes.com.value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length;
|
||||||
counter.textContent = count;
|
counter.textContent = count;
|
||||||
counter.hidden = count < 1000;
|
counter.hidden = count < QR.max_comment / 2;
|
||||||
return (count > 2000 ? $.addClass : $.rmClass)(counter, 'warning');
|
return (count > QR.max_comment ? $.addClass : $.rmClass)(counter, 'warning');
|
||||||
},
|
},
|
||||||
getFile: function() {
|
getFile: function() {
|
||||||
var ref;
|
var ref;
|
||||||
@ -7399,7 +7400,7 @@
|
|||||||
return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
|
return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, setNode;
|
var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, scriptData, setNode;
|
||||||
QR.nodes = nodes = {
|
QR.nodes = nodes = {
|
||||||
el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', {
|
el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', {
|
||||||
innerHTML: "<div class=\"move\"><label><input type=\"checkbox\" id=\"autohide\" title=\"Auto-hide\">Quick Reply</label><a href=\"javascript:;\" class=\"close\" title=\"Close\">×</a><select data-name=\"thread\" title=\"Create a new thread / Reply\"><option value=\"new\">New thread</option></select></div><form><div class=\"persona\"><input name=\"name\" data-name=\"name\" list=\"list-name\" placeholder=\"Name\" class=\"field\" size=\"1\"><input name=\"email\" data-name=\"email\" list=\"list-email\" placeholder=\"Options\" class=\"field\" size=\"1\"><input name=\"sub\" data-name=\"sub\" list=\"list-sub\" placeholder=\"Subject\" class=\"field\" size=\"1\"></div><div class=\"textarea\"><textarea data-name=\"com\" placeholder=\"Comment\" class=\"field\"></textarea><span id=\"char-count\"></span></div><div id=\"dump-list-container\"><div id=\"dump-list\"></div><a id=\"add-post\" href=\"javascript:;\" title=\"Add a post\">+</a></div><div id=\"file-n-submit\"><input type=\"button\" id=\"qr-file-button\" value=\"Files\"><span id=\"qr-filename-container\" class=\"field\"><span id=\"qr-no-file\">No selected file</span><input id=\"qr-filename\" data-name=\"filename\" spellcheck=\"false\"><label id=\"qr-spoiler-label\"><input type=\"checkbox\" id=\"qr-file-spoiler\" title=\"Spoiler image\"></label><a href=\"javascript:;\" id=\"qr-filerm\" title=\"Remove file\"><i class=\"fa fa-times-circle\"></i></a><a id=\"url-button\" title=\"Post from url\"><i class=\"fa fa-link\"></i></a><a hidden id=\"paste-area\" title=\"Select to paste images\" class=\"fa fa-clipboard\" tabindex=\"-1\" contentEditable=\"true\"></a><a id=\"custom-cooldown-button\" title=\"Toggle custom cooldown\" class=\"disabled\"><i class=\"fa fa-clock-o\"></i></a><a id=\"dump-button\" title=\"Dump list\"><i class=\"fa fa-plus-square\"></i></a></span><input type=\"submit\"></div><input type=\"file\" multiple></form><datalist id=\"list-name\"></datalist><datalist id=\"list-email\"></datalist><datalist id=\"list-sub\"></datalist> "
|
innerHTML: "<div class=\"move\"><label><input type=\"checkbox\" id=\"autohide\" title=\"Auto-hide\">Quick Reply</label><a href=\"javascript:;\" class=\"close\" title=\"Close\">×</a><select data-name=\"thread\" title=\"Create a new thread / Reply\"><option value=\"new\">New thread</option></select></div><form><div class=\"persona\"><input name=\"name\" data-name=\"name\" list=\"list-name\" placeholder=\"Name\" class=\"field\" size=\"1\"><input name=\"email\" data-name=\"email\" list=\"list-email\" placeholder=\"Options\" class=\"field\" size=\"1\"><input name=\"sub\" data-name=\"sub\" list=\"list-sub\" placeholder=\"Subject\" class=\"field\" size=\"1\"></div><div class=\"textarea\"><textarea data-name=\"com\" placeholder=\"Comment\" class=\"field\"></textarea><span id=\"char-count\"></span></div><div id=\"dump-list-container\"><div id=\"dump-list\"></div><a id=\"add-post\" href=\"javascript:;\" title=\"Add a post\">+</a></div><div id=\"file-n-submit\"><input type=\"button\" id=\"qr-file-button\" value=\"Files\"><span id=\"qr-filename-container\" class=\"field\"><span id=\"qr-no-file\">No selected file</span><input id=\"qr-filename\" data-name=\"filename\" spellcheck=\"false\"><label id=\"qr-spoiler-label\"><input type=\"checkbox\" id=\"qr-file-spoiler\" title=\"Spoiler image\"></label><a href=\"javascript:;\" id=\"qr-filerm\" title=\"Remove file\"><i class=\"fa fa-times-circle\"></i></a><a id=\"url-button\" title=\"Post from url\"><i class=\"fa fa-link\"></i></a><a hidden id=\"paste-area\" title=\"Select to paste images\" class=\"fa fa-clipboard\" tabindex=\"-1\" contentEditable=\"true\"></a><a id=\"custom-cooldown-button\" title=\"Toggle custom cooldown\" class=\"disabled\"><i class=\"fa fa-clock-o\"></i></a><a id=\"dump-button\" title=\"Dump list\"><i class=\"fa fa-plus-square\"></i></a></span><input type=\"submit\"></div><input type=\"file\" multiple></form><datalist id=\"list-name\"></datalist><datalist id=\"list-email\"></datalist><datalist id=\"list-sub\"></datalist> "
|
||||||
@ -7442,7 +7443,9 @@
|
|||||||
QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000;
|
QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000;
|
||||||
QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000;
|
QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000;
|
||||||
nodes.fileInput.max = $('input[name=MAX_FILE_SIZE]').value;
|
nodes.fileInput.max = $('input[name=MAX_FILE_SIZE]').value;
|
||||||
QR.max_size_video = (m = Get.scriptData().match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max;
|
scriptData = Get.scriptData();
|
||||||
|
QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max;
|
||||||
|
QR.max_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000;
|
||||||
QR.max_width_video = QR.max_height_video = 2048;
|
QR.max_width_video = QR.max_height_video = 2048;
|
||||||
QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120;
|
QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120;
|
||||||
if (Conf['Show New Thread Option in Threads']) {
|
if (Conf['Show New Thread Option in Threads']) {
|
||||||
@ -15654,6 +15657,12 @@
|
|||||||
}
|
}
|
||||||
Keybinds.tags('math', target);
|
Keybinds.tags('math', target);
|
||||||
break;
|
break;
|
||||||
|
case Conf['SJIS tags']:
|
||||||
|
if (target.nodeName !== 'TEXTAREA') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Keybinds.tags('sjis', target);
|
||||||
|
break;
|
||||||
case Conf['Toggle sage']:
|
case Conf['Toggle sage']:
|
||||||
if (!(QR.nodes && !QR.nodes.el.hidden)) {
|
if (!(QR.nodes && !QR.nodes.el.hidden)) {
|
||||||
return;
|
return;
|
||||||
@ -15942,6 +15951,8 @@
|
|||||||
case 'math':
|
case 'math':
|
||||||
case 'eqn':
|
case 'eqn':
|
||||||
return g.BOARD.ID === 'sci';
|
return g.BOARD.ID === 'sci';
|
||||||
|
case 'sjis':
|
||||||
|
return g.BOARD.ID === 'jp';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
if (!supported) {
|
if (!supported) {
|
||||||
|
|||||||
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.12.6
|
// @version 1.11.12.7
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -356,6 +356,7 @@
|
|||||||
'Code tags': ['Alt+c', 'Insert code tags.'],
|
'Code tags': ['Alt+c', 'Insert code tags.'],
|
||||||
'Eqn tags': ['Alt+e', 'Insert eqn tags.'],
|
'Eqn tags': ['Alt+e', 'Insert eqn tags.'],
|
||||||
'Math tags': ['Alt+m', 'Insert math tags.'],
|
'Math tags': ['Alt+m', 'Insert math tags.'],
|
||||||
|
'SJIS tags': ['Alt+a', 'Insert SJIS tags.'],
|
||||||
'Toggle sage': ['Alt+s', 'Toggle sage in options field.'],
|
'Toggle sage': ['Alt+s', 'Toggle sage in options field.'],
|
||||||
'Submit QR': ['Ctrl+Enter', 'Submit post.'],
|
'Submit QR': ['Ctrl+Enter', 'Submit post.'],
|
||||||
'Watch': ['w', 'Watch thread.'],
|
'Watch': ['w', 'Watch thread.'],
|
||||||
@ -413,7 +414,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.12.6',
|
VERSION: '1.11.12.7',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -7230,8 +7231,8 @@
|
|||||||
counter = QR.nodes.charCount;
|
counter = QR.nodes.charCount;
|
||||||
count = QR.nodes.com.value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length;
|
count = QR.nodes.com.value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length;
|
||||||
counter.textContent = count;
|
counter.textContent = count;
|
||||||
counter.hidden = count < 1000;
|
counter.hidden = count < QR.max_comment / 2;
|
||||||
return (count > 2000 ? $.addClass : $.rmClass)(counter, 'warning');
|
return (count > QR.max_comment ? $.addClass : $.rmClass)(counter, 'warning');
|
||||||
},
|
},
|
||||||
getFile: function() {
|
getFile: function() {
|
||||||
var ref;
|
var ref;
|
||||||
@ -7399,7 +7400,7 @@
|
|||||||
return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
|
return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, setNode;
|
var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, scriptData, setNode;
|
||||||
QR.nodes = nodes = {
|
QR.nodes = nodes = {
|
||||||
el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', {
|
el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', {
|
||||||
innerHTML: "<div class=\"move\"><label><input type=\"checkbox\" id=\"autohide\" title=\"Auto-hide\">Quick Reply</label><a href=\"javascript:;\" class=\"close\" title=\"Close\">×</a><select data-name=\"thread\" title=\"Create a new thread / Reply\"><option value=\"new\">New thread</option></select></div><form><div class=\"persona\"><input name=\"name\" data-name=\"name\" list=\"list-name\" placeholder=\"Name\" class=\"field\" size=\"1\"><input name=\"email\" data-name=\"email\" list=\"list-email\" placeholder=\"Options\" class=\"field\" size=\"1\"><input name=\"sub\" data-name=\"sub\" list=\"list-sub\" placeholder=\"Subject\" class=\"field\" size=\"1\"></div><div class=\"textarea\"><textarea data-name=\"com\" placeholder=\"Comment\" class=\"field\"></textarea><span id=\"char-count\"></span></div><div id=\"dump-list-container\"><div id=\"dump-list\"></div><a id=\"add-post\" href=\"javascript:;\" title=\"Add a post\">+</a></div><div id=\"file-n-submit\"><input type=\"button\" id=\"qr-file-button\" value=\"Files\"><span id=\"qr-filename-container\" class=\"field\"><span id=\"qr-no-file\">No selected file</span><input id=\"qr-filename\" data-name=\"filename\" spellcheck=\"false\"><label id=\"qr-spoiler-label\"><input type=\"checkbox\" id=\"qr-file-spoiler\" title=\"Spoiler image\"></label><a href=\"javascript:;\" id=\"qr-filerm\" title=\"Remove file\"><i class=\"fa fa-times-circle\"></i></a><a id=\"url-button\" title=\"Post from url\"><i class=\"fa fa-link\"></i></a><a hidden id=\"paste-area\" title=\"Select to paste images\" class=\"fa fa-clipboard\" tabindex=\"-1\" contentEditable=\"true\"></a><a id=\"custom-cooldown-button\" title=\"Toggle custom cooldown\" class=\"disabled\"><i class=\"fa fa-clock-o\"></i></a><a id=\"dump-button\" title=\"Dump list\"><i class=\"fa fa-plus-square\"></i></a></span><input type=\"submit\"></div><input type=\"file\" multiple></form><datalist id=\"list-name\"></datalist><datalist id=\"list-email\"></datalist><datalist id=\"list-sub\"></datalist> "
|
innerHTML: "<div class=\"move\"><label><input type=\"checkbox\" id=\"autohide\" title=\"Auto-hide\">Quick Reply</label><a href=\"javascript:;\" class=\"close\" title=\"Close\">×</a><select data-name=\"thread\" title=\"Create a new thread / Reply\"><option value=\"new\">New thread</option></select></div><form><div class=\"persona\"><input name=\"name\" data-name=\"name\" list=\"list-name\" placeholder=\"Name\" class=\"field\" size=\"1\"><input name=\"email\" data-name=\"email\" list=\"list-email\" placeholder=\"Options\" class=\"field\" size=\"1\"><input name=\"sub\" data-name=\"sub\" list=\"list-sub\" placeholder=\"Subject\" class=\"field\" size=\"1\"></div><div class=\"textarea\"><textarea data-name=\"com\" placeholder=\"Comment\" class=\"field\"></textarea><span id=\"char-count\"></span></div><div id=\"dump-list-container\"><div id=\"dump-list\"></div><a id=\"add-post\" href=\"javascript:;\" title=\"Add a post\">+</a></div><div id=\"file-n-submit\"><input type=\"button\" id=\"qr-file-button\" value=\"Files\"><span id=\"qr-filename-container\" class=\"field\"><span id=\"qr-no-file\">No selected file</span><input id=\"qr-filename\" data-name=\"filename\" spellcheck=\"false\"><label id=\"qr-spoiler-label\"><input type=\"checkbox\" id=\"qr-file-spoiler\" title=\"Spoiler image\"></label><a href=\"javascript:;\" id=\"qr-filerm\" title=\"Remove file\"><i class=\"fa fa-times-circle\"></i></a><a id=\"url-button\" title=\"Post from url\"><i class=\"fa fa-link\"></i></a><a hidden id=\"paste-area\" title=\"Select to paste images\" class=\"fa fa-clipboard\" tabindex=\"-1\" contentEditable=\"true\"></a><a id=\"custom-cooldown-button\" title=\"Toggle custom cooldown\" class=\"disabled\"><i class=\"fa fa-clock-o\"></i></a><a id=\"dump-button\" title=\"Dump list\"><i class=\"fa fa-plus-square\"></i></a></span><input type=\"submit\"></div><input type=\"file\" multiple></form><datalist id=\"list-name\"></datalist><datalist id=\"list-email\"></datalist><datalist id=\"list-sub\"></datalist> "
|
||||||
@ -7442,7 +7443,9 @@
|
|||||||
QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000;
|
QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000;
|
||||||
QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000;
|
QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000;
|
||||||
nodes.fileInput.max = $('input[name=MAX_FILE_SIZE]').value;
|
nodes.fileInput.max = $('input[name=MAX_FILE_SIZE]').value;
|
||||||
QR.max_size_video = (m = Get.scriptData().match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max;
|
scriptData = Get.scriptData();
|
||||||
|
QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max;
|
||||||
|
QR.max_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000;
|
||||||
QR.max_width_video = QR.max_height_video = 2048;
|
QR.max_width_video = QR.max_height_video = 2048;
|
||||||
QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120;
|
QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120;
|
||||||
if (Conf['Show New Thread Option in Threads']) {
|
if (Conf['Show New Thread Option in Threads']) {
|
||||||
@ -15654,6 +15657,12 @@
|
|||||||
}
|
}
|
||||||
Keybinds.tags('math', target);
|
Keybinds.tags('math', target);
|
||||||
break;
|
break;
|
||||||
|
case Conf['SJIS tags']:
|
||||||
|
if (target.nodeName !== 'TEXTAREA') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Keybinds.tags('sjis', target);
|
||||||
|
break;
|
||||||
case Conf['Toggle sage']:
|
case Conf['Toggle sage']:
|
||||||
if (!(QR.nodes && !QR.nodes.el.hidden)) {
|
if (!(QR.nodes && !QR.nodes.el.hidden)) {
|
||||||
return;
|
return;
|
||||||
@ -15942,6 +15951,8 @@
|
|||||||
case 'math':
|
case 'math':
|
||||||
case 'eqn':
|
case 'eqn':
|
||||||
return g.BOARD.ID === 'sci';
|
return g.BOARD.ID === 'sci';
|
||||||
|
case 'sjis':
|
||||||
|
return g.BOARD.ID === 'jp';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
if (!supported) {
|
if (!supported) {
|
||||||
|
|||||||
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.12.6
|
// @version 1.11.12.7
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name 4chan X
|
// @name 4chan X
|
||||||
// @version 1.11.12.6
|
// @version 1.11.12.7
|
||||||
// @minGMVer 1.14
|
// @minGMVer 1.14
|
||||||
// @minFFVer 26
|
// @minFFVer 26
|
||||||
// @namespace 4chan-X
|
// @namespace 4chan-X
|
||||||
@ -356,6 +356,7 @@
|
|||||||
'Code tags': ['Alt+c', 'Insert code tags.'],
|
'Code tags': ['Alt+c', 'Insert code tags.'],
|
||||||
'Eqn tags': ['Alt+e', 'Insert eqn tags.'],
|
'Eqn tags': ['Alt+e', 'Insert eqn tags.'],
|
||||||
'Math tags': ['Alt+m', 'Insert math tags.'],
|
'Math tags': ['Alt+m', 'Insert math tags.'],
|
||||||
|
'SJIS tags': ['Alt+a', 'Insert SJIS tags.'],
|
||||||
'Toggle sage': ['Alt+s', 'Toggle sage in options field.'],
|
'Toggle sage': ['Alt+s', 'Toggle sage in options field.'],
|
||||||
'Submit QR': ['Ctrl+Enter', 'Submit post.'],
|
'Submit QR': ['Ctrl+Enter', 'Submit post.'],
|
||||||
'Watch': ['w', 'Watch thread.'],
|
'Watch': ['w', 'Watch thread.'],
|
||||||
@ -413,7 +414,7 @@
|
|||||||
doc = d.documentElement;
|
doc = d.documentElement;
|
||||||
|
|
||||||
g = {
|
g = {
|
||||||
VERSION: '1.11.12.6',
|
VERSION: '1.11.12.7',
|
||||||
NAMESPACE: '4chan X.',
|
NAMESPACE: '4chan X.',
|
||||||
boards: {}
|
boards: {}
|
||||||
};
|
};
|
||||||
@ -7230,8 +7231,8 @@
|
|||||||
counter = QR.nodes.charCount;
|
counter = QR.nodes.charCount;
|
||||||
count = QR.nodes.com.value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length;
|
count = QR.nodes.com.value.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, '_').length;
|
||||||
counter.textContent = count;
|
counter.textContent = count;
|
||||||
counter.hidden = count < 1000;
|
counter.hidden = count < QR.max_comment / 2;
|
||||||
return (count > 2000 ? $.addClass : $.rmClass)(counter, 'warning');
|
return (count > QR.max_comment ? $.addClass : $.rmClass)(counter, 'warning');
|
||||||
},
|
},
|
||||||
getFile: function() {
|
getFile: function() {
|
||||||
var ref;
|
var ref;
|
||||||
@ -7399,7 +7400,7 @@
|
|||||||
return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
|
return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread');
|
||||||
},
|
},
|
||||||
dialog: function() {
|
dialog: function() {
|
||||||
var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, setNode;
|
var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, scriptData, setNode;
|
||||||
QR.nodes = nodes = {
|
QR.nodes = nodes = {
|
||||||
el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', {
|
el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', {
|
||||||
innerHTML: "<div class=\"move\"><label><input type=\"checkbox\" id=\"autohide\" title=\"Auto-hide\">Quick Reply</label><a href=\"javascript:;\" class=\"close\" title=\"Close\">×</a><select data-name=\"thread\" title=\"Create a new thread / Reply\"><option value=\"new\">New thread</option></select></div><form><div class=\"persona\"><input name=\"name\" data-name=\"name\" list=\"list-name\" placeholder=\"Name\" class=\"field\" size=\"1\"><input name=\"email\" data-name=\"email\" list=\"list-email\" placeholder=\"Options\" class=\"field\" size=\"1\"><input name=\"sub\" data-name=\"sub\" list=\"list-sub\" placeholder=\"Subject\" class=\"field\" size=\"1\"></div><div class=\"textarea\"><textarea data-name=\"com\" placeholder=\"Comment\" class=\"field\"></textarea><span id=\"char-count\"></span></div><div id=\"dump-list-container\"><div id=\"dump-list\"></div><a id=\"add-post\" href=\"javascript:;\" title=\"Add a post\">+</a></div><div id=\"file-n-submit\"><input type=\"button\" id=\"qr-file-button\" value=\"Files\"><span id=\"qr-filename-container\" class=\"field\"><span id=\"qr-no-file\">No selected file</span><input id=\"qr-filename\" data-name=\"filename\" spellcheck=\"false\"><label id=\"qr-spoiler-label\"><input type=\"checkbox\" id=\"qr-file-spoiler\" title=\"Spoiler image\"></label><a href=\"javascript:;\" id=\"qr-filerm\" title=\"Remove file\"><i class=\"fa fa-times-circle\"></i></a><a id=\"url-button\" title=\"Post from url\"><i class=\"fa fa-link\"></i></a><a hidden id=\"paste-area\" title=\"Select to paste images\" class=\"fa fa-clipboard\" tabindex=\"-1\" contentEditable=\"true\"></a><a id=\"custom-cooldown-button\" title=\"Toggle custom cooldown\" class=\"disabled\"><i class=\"fa fa-clock-o\"></i></a><a id=\"dump-button\" title=\"Dump list\"><i class=\"fa fa-plus-square\"></i></a></span><input type=\"submit\"></div><input type=\"file\" multiple></form><datalist id=\"list-name\"></datalist><datalist id=\"list-email\"></datalist><datalist id=\"list-sub\"></datalist> "
|
innerHTML: "<div class=\"move\"><label><input type=\"checkbox\" id=\"autohide\" title=\"Auto-hide\">Quick Reply</label><a href=\"javascript:;\" class=\"close\" title=\"Close\">×</a><select data-name=\"thread\" title=\"Create a new thread / Reply\"><option value=\"new\">New thread</option></select></div><form><div class=\"persona\"><input name=\"name\" data-name=\"name\" list=\"list-name\" placeholder=\"Name\" class=\"field\" size=\"1\"><input name=\"email\" data-name=\"email\" list=\"list-email\" placeholder=\"Options\" class=\"field\" size=\"1\"><input name=\"sub\" data-name=\"sub\" list=\"list-sub\" placeholder=\"Subject\" class=\"field\" size=\"1\"></div><div class=\"textarea\"><textarea data-name=\"com\" placeholder=\"Comment\" class=\"field\"></textarea><span id=\"char-count\"></span></div><div id=\"dump-list-container\"><div id=\"dump-list\"></div><a id=\"add-post\" href=\"javascript:;\" title=\"Add a post\">+</a></div><div id=\"file-n-submit\"><input type=\"button\" id=\"qr-file-button\" value=\"Files\"><span id=\"qr-filename-container\" class=\"field\"><span id=\"qr-no-file\">No selected file</span><input id=\"qr-filename\" data-name=\"filename\" spellcheck=\"false\"><label id=\"qr-spoiler-label\"><input type=\"checkbox\" id=\"qr-file-spoiler\" title=\"Spoiler image\"></label><a href=\"javascript:;\" id=\"qr-filerm\" title=\"Remove file\"><i class=\"fa fa-times-circle\"></i></a><a id=\"url-button\" title=\"Post from url\"><i class=\"fa fa-link\"></i></a><a hidden id=\"paste-area\" title=\"Select to paste images\" class=\"fa fa-clipboard\" tabindex=\"-1\" contentEditable=\"true\"></a><a id=\"custom-cooldown-button\" title=\"Toggle custom cooldown\" class=\"disabled\"><i class=\"fa fa-clock-o\"></i></a><a id=\"dump-button\" title=\"Dump list\"><i class=\"fa fa-plus-square\"></i></a></span><input type=\"submit\"></div><input type=\"file\" multiple></form><datalist id=\"list-name\"></datalist><datalist id=\"list-email\"></datalist><datalist id=\"list-sub\"></datalist> "
|
||||||
@ -7442,7 +7443,9 @@
|
|||||||
QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000;
|
QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000;
|
||||||
QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000;
|
QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000;
|
||||||
nodes.fileInput.max = $('input[name=MAX_FILE_SIZE]').value;
|
nodes.fileInput.max = $('input[name=MAX_FILE_SIZE]').value;
|
||||||
QR.max_size_video = (m = Get.scriptData().match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max;
|
scriptData = Get.scriptData();
|
||||||
|
QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max;
|
||||||
|
QR.max_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000;
|
||||||
QR.max_width_video = QR.max_height_video = 2048;
|
QR.max_width_video = QR.max_height_video = 2048;
|
||||||
QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120;
|
QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120;
|
||||||
if (Conf['Show New Thread Option in Threads']) {
|
if (Conf['Show New Thread Option in Threads']) {
|
||||||
@ -15654,6 +15657,12 @@
|
|||||||
}
|
}
|
||||||
Keybinds.tags('math', target);
|
Keybinds.tags('math', target);
|
||||||
break;
|
break;
|
||||||
|
case Conf['SJIS tags']:
|
||||||
|
if (target.nodeName !== 'TEXTAREA') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Keybinds.tags('sjis', target);
|
||||||
|
break;
|
||||||
case Conf['Toggle sage']:
|
case Conf['Toggle sage']:
|
||||||
if (!(QR.nodes && !QR.nodes.el.hidden)) {
|
if (!(QR.nodes && !QR.nodes.el.hidden)) {
|
||||||
return;
|
return;
|
||||||
@ -15942,6 +15951,8 @@
|
|||||||
case 'math':
|
case 'math':
|
||||||
case 'eqn':
|
case 'eqn':
|
||||||
return g.BOARD.ID === 'sci';
|
return g.BOARD.ID === 'sci';
|
||||||
|
case 'sjis':
|
||||||
|
return g.BOARD.ID === 'jp';
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
if (!supported) {
|
if (!supported) {
|
||||||
|
|||||||
Binary file not shown.
@ -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://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.12.6' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.11.12.7' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -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://www.4chan-x.net/builds/4chan-X.crx' version='1.11.12.6' />
|
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.11.12.7' />
|
||||||
</app>
|
</app>
|
||||||
</gupdate>
|
</gupdate>
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@
|
|||||||
"meta": {
|
"meta": {
|
||||||
"name": "4chan X",
|
"name": "4chan X",
|
||||||
"fork": "ccd0",
|
"fork": "ccd0",
|
||||||
"version": "1.11.12.6",
|
"version": "1.11.12.7",
|
||||||
"date": "2015-10-12T10:31:40.924Z",
|
"date": "2015-10-14T02:20:26.038Z",
|
||||||
"page": "https://www.4chan-x.net/",
|
"page": "https://www.4chan-x.net/",
|
||||||
"downloads": "https://www.4chan-x.net/builds/",
|
"downloads": "https://www.4chan-x.net/builds/",
|
||||||
"oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",
|
"oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user