diff --git a/CHANGELOG.md b/CHANGELOG.md index a154ae01a..57c1ea410 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor ### v1.11.18 +**v1.11.18.6** *(2015-11-28)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.6/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.6/builds/4chan-X-noupdate.crx "Chromium version")] +- Fix max file size on /news/. + **v1.11.18.5** *(2015-11-27)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.5/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.5/builds/4chan-X-noupdate.crx "Chromium version")] - Update Quick Reply to work on text-only boards such as /news/. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 31caedad3..fd9e014e9 100644 Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js index 623e480fe..96d02a402 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.11.18.5 +// @version 1.11.18.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index 1ff78a7ba..051a857f1 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X beta -// @version 1.11.18.5 +// @version 1.11.18.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -432,7 +432,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.18.5', + VERSION: '1.11.18.6', NAMESPACE: '4chan X.', boards: {} }; @@ -7517,7 +7517,7 @@ return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread'); }, dialog: function() { - var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, ref1, rules, save, scriptData, setNode; + var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, scriptData, setNode; QR.nodes = nodes = { el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', { innerHTML: "
" @@ -7564,12 +7564,12 @@ QR.min_height = +(match_min != null ? match_min[2] : void 0) || 1; QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000; QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000; - nodes.fileInput.max = ((ref = $('input[name=MAX_FILE_SIZE]')) != null ? ref.value : void 0) || '0'; scriptData = Get.scriptData(); - QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max; + QR.max_size = (m = scriptData.match(/\bmaxFilesize *= *(\d+)\b/)) ? +m[1] : 4194304; + QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : QR.max_size; QR.max_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000; QR.max_width_video = QR.max_height_video = 2048; - QR.max_duration_video = (ref1 = g.BOARD.ID) === 'gif' || ref1 === 'wsg' ? 300 : 120; + QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120; if (Conf['Show New Thread Option in Threads']) { $.addClass(QR.nodes.el, 'show-new-thread-option'); } @@ -9770,7 +9770,7 @@ _Class.prototype.checkSize = function() { var max; - max = QR.nodes.fileInput.max; + max = QR.max_size; if (/^video\//.test(this.file.type)) { max = Math.min(max, QR.max_size_video); } diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 284a5cfa2..202574a78 100644 Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js index e868af222..49a2d9c7f 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.11.18.5 +// @version 1.11.18.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -432,7 +432,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.18.5', + VERSION: '1.11.18.6', NAMESPACE: '4chan X.', boards: {} }; @@ -7517,7 +7517,7 @@ return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread'); }, dialog: function() { - var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, ref1, rules, save, scriptData, setNode; + var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, scriptData, setNode; QR.nodes = nodes = { el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', { innerHTML: " " @@ -7564,12 +7564,12 @@ QR.min_height = +(match_min != null ? match_min[2] : void 0) || 1; QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000; QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000; - nodes.fileInput.max = ((ref = $('input[name=MAX_FILE_SIZE]')) != null ? ref.value : void 0) || '0'; scriptData = Get.scriptData(); - QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max; + QR.max_size = (m = scriptData.match(/\bmaxFilesize *= *(\d+)\b/)) ? +m[1] : 4194304; + QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : QR.max_size; QR.max_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000; QR.max_width_video = QR.max_height_video = 2048; - QR.max_duration_video = (ref1 = g.BOARD.ID) === 'gif' || ref1 === 'wsg' ? 300 : 120; + QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120; if (Conf['Show New Thread Option in Threads']) { $.addClass(QR.nodes.el, 'show-new-thread-option'); } @@ -9770,7 +9770,7 @@ _Class.prototype.checkSize = function() { var max; - max = QR.nodes.fileInput.max; + max = QR.max_size; if (/^video\//.test(this.file.type)) { max = Math.min(max, QR.max_size_video); } diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 35730ae75..fd871ca6c 100644 Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index 492e204cf..03f3c6ec4 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.11.18.5 +// @version 1.11.18.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 285c8ce62..74c2d9e8d 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.11.18.5 +// @version 1.11.18.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -432,7 +432,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.18.5', + VERSION: '1.11.18.6', NAMESPACE: '4chan X.', boards: {} }; @@ -7517,7 +7517,7 @@ return (g.VIEW === 'thread' ? $.addClass : $.rmClass)(QR.nodes.el, 'reply-to-thread'); }, dialog: function() { - var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, ref1, rules, save, scriptData, setNode; + var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, rules, save, scriptData, setNode; QR.nodes = nodes = { el: dialog = UI.dialog('qr', 'top: 50px; right: 0px;', { innerHTML: " " @@ -7564,12 +7564,12 @@ QR.min_height = +(match_min != null ? match_min[2] : void 0) || 1; QR.max_width = +(match_max != null ? match_max[1] : void 0) || 10000; QR.max_height = +(match_max != null ? match_max[2] : void 0) || 10000; - nodes.fileInput.max = ((ref = $('input[name=MAX_FILE_SIZE]')) != null ? ref.value : void 0) || '0'; scriptData = Get.scriptData(); - QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : +nodes.fileInput.max; + QR.max_size = (m = scriptData.match(/\bmaxFilesize *= *(\d+)\b/)) ? +m[1] : 4194304; + QR.max_size_video = (m = scriptData.match(/\bmaxWebmFilesize *= *(\d+)\b/)) ? +m[1] : QR.max_size; QR.max_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000; QR.max_width_video = QR.max_height_video = 2048; - QR.max_duration_video = (ref1 = g.BOARD.ID) === 'gif' || ref1 === 'wsg' ? 300 : 120; + QR.max_duration_video = (ref = g.BOARD.ID) === 'gif' || ref === 'wsg' ? 300 : 120; if (Conf['Show New Thread Option in Threads']) { $.addClass(QR.nodes.el, 'show-new-thread-option'); } @@ -9770,7 +9770,7 @@ _Class.prototype.checkSize = function() { var max; - max = QR.nodes.fileInput.max; + max = QR.max_size; if (/^video\//.test(this.file.type)) { max = Math.min(max, QR.max_size_video); } diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index da93187e6..b3d10cb42 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index 0d1216442..1286450dd 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@