diff --git a/CHANGELOG.md b/CHANGELOG.md index 00fa5c6b1..a154ae01a 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.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/. + **v1.11.18.4** *(2015-11-25)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.4/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.18.4/builds/4chan-X-noupdate.crx "Chromium version")] - Merge v1.11.17.10: Fix captcha focusing bug. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 21c77c51d..31caedad3 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 0a0d21417..623e480fe 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.4 +// @version 1.11.18.5 // @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 238a303f0..1ff78a7ba 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.4 +// @version 1.11.18.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -432,7 +432,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.18.4', + VERSION: '1.11.18.5', 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, rules, save, scriptData, setNode; + var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, ref1, 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 = $('input[name=MAX_FILE_SIZE]').value; + 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_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000; 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 = (ref1 = g.BOARD.ID) === 'gif' || ref1 === 'wsg' ? 300 : 120; if (Conf['Show New Thread Option in Threads']) { $.addClass(QR.nodes.el, 'show-new-thread-option'); } @@ -7699,7 +7699,7 @@ threadID = null; if (g.BOARD.ID === 'vg' && !post.sub) { err = 'New threads require a subject.'; - } else if (!(post.file || (textOnly = !!$('input[name=textonly]', $.id('postForm'))))) { + } else if (!(!$.id('postFile') || post.file || (textOnly = !!$('input[name=textonly]', $.id('postForm'))))) { err = 'No file selected.'; } } else if (g.BOARD.threads[threadID].isClosed) { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index ccd323110..284a5cfa2 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 c142bb87b..e868af222 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.4 +// @version 1.11.18.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -432,7 +432,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.18.4', + VERSION: '1.11.18.5', 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, rules, save, scriptData, setNode; + var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, ref1, 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 = $('input[name=MAX_FILE_SIZE]').value; + 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_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000; 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 = (ref1 = g.BOARD.ID) === 'gif' || ref1 === 'wsg' ? 300 : 120; if (Conf['Show New Thread Option in Threads']) { $.addClass(QR.nodes.el, 'show-new-thread-option'); } @@ -7699,7 +7699,7 @@ threadID = null; if (g.BOARD.ID === 'vg' && !post.sub) { err = 'New threads require a subject.'; - } else if (!(post.file || (textOnly = !!$('input[name=textonly]', $.id('postForm'))))) { + } else if (!(!$.id('postFile') || post.file || (textOnly = !!$('input[name=textonly]', $.id('postForm'))))) { err = 'No file selected.'; } } else if (g.BOARD.threads[threadID].isClosed) { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 598fe7505..35730ae75 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 b84e70eae..492e204cf 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.4 +// @version 1.11.18.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b09646f85..285c8ce62 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.4 +// @version 1.11.18.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -432,7 +432,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.18.4', + VERSION: '1.11.18.5', 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, rules, save, scriptData, setNode; + var dialog, event, i, items, m, match_max, match_min, name, node, nodes, ref, ref1, 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 = $('input[name=MAX_FILE_SIZE]').value; + 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_comment = (m = scriptData.match(/\bcomlen *= *(\d+)\b/)) ? +m[1] : 2000; 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 = (ref1 = g.BOARD.ID) === 'gif' || ref1 === 'wsg' ? 300 : 120; if (Conf['Show New Thread Option in Threads']) { $.addClass(QR.nodes.el, 'show-new-thread-option'); } @@ -7699,7 +7699,7 @@ threadID = null; if (g.BOARD.ID === 'vg' && !post.sub) { err = 'New threads require a subject.'; - } else if (!(post.file || (textOnly = !!$('input[name=textonly]', $.id('postForm'))))) { + } else if (!(!$.id('postFile') || post.file || (textOnly = !!$('input[name=textonly]', $.id('postForm'))))) { err = 'No file selected.'; } } else if (g.BOARD.threads[threadID].isClosed) { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 6e299fbe4..da93187e6 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 efadf338b..0d1216442 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@