diff --git a/CHANGELOG.md b/CHANGELOG.md index 986491513..18b666749 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ Sometimes the changelog has notes (not comprehensive) acknowledging people's wor ### v1.11.14 +**v1.11.14.6** *(2015-10-29)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.14.6/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.14.6/builds/4chan-X-noupdate.crx "Chromium version")] +- Check for empty or quotelink-only comments before submitting posts on /r9k/. + **v1.11.14.5** *(2015-10-27)* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.14.5/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.11.14.5/builds/4chan-X-noupdate.crx "Chromium version")] - Minor bugfixes. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index ced18e7a9..93b86d273 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 68fb5b7ae..9cf53324b 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.14.5 +// @version 1.11.14.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 d262a3f31..e994b6f7e 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.14.5 +// @version 1.11.14.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -414,7 +414,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.14.5', + VERSION: '1.11.14.6', NAMESPACE: '4chan X.', boards: {} }; @@ -7605,7 +7605,7 @@ return $.event('QRDialogCreation', null, dialog); }, submit: function(e) { - var captcha, cb, err, extra, filetag, formData, options, post, textOnly, thread, threadID; + var captcha, cb, err, extra, filetag, formData, options, post, ref, textOnly, thread, threadID; if (e != null) { e.preventDefault(); } @@ -7635,10 +7635,13 @@ } else if (g.BOARD.threads[threadID].isClosed) { err = 'You can\'t reply to this thread anymore.'; } else if (!(post.com || post.file)) { - err = 'No file selected.'; + err = 'No comment or file.'; } else if (post.file && thread.fileLimit) { err = 'Max limit of image replies has been reached.'; } + if (g.BOARD.ID === 'r9k' && !((ref = post.com) != null ? ref.match(/[a-z-]/i) : void 0)) { + err || (err = 'Original comment required.'); + } if (QR.captcha.isEnabled && !err) { captcha = QR.captcha.getOne(); if (!captcha) { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 3c8faa453..b4a74bea9 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 25a0f6f19..ff40f1370 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.14.5 +// @version 1.11.14.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -414,7 +414,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.14.5', + VERSION: '1.11.14.6', NAMESPACE: '4chan X.', boards: {} }; @@ -7605,7 +7605,7 @@ return $.event('QRDialogCreation', null, dialog); }, submit: function(e) { - var captcha, cb, err, extra, filetag, formData, options, post, textOnly, thread, threadID; + var captcha, cb, err, extra, filetag, formData, options, post, ref, textOnly, thread, threadID; if (e != null) { e.preventDefault(); } @@ -7635,10 +7635,13 @@ } else if (g.BOARD.threads[threadID].isClosed) { err = 'You can\'t reply to this thread anymore.'; } else if (!(post.com || post.file)) { - err = 'No file selected.'; + err = 'No comment or file.'; } else if (post.file && thread.fileLimit) { err = 'Max limit of image replies has been reached.'; } + if (g.BOARD.ID === 'r9k' && !((ref = post.com) != null ? ref.match(/[a-z-]/i) : void 0)) { + err || (err = 'Original comment required.'); + } if (QR.captcha.isEnabled && !err) { captcha = QR.captcha.getOne(); if (!captcha) { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 5266b79cb..f6ee22c72 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 c6f97705f..07997c6af 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.11.14.5 +// @version 1.11.14.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 107c86a82..372b5b6eb 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.14.5 +// @version 1.11.14.6 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -414,7 +414,7 @@ doc = d.documentElement; g = { - VERSION: '1.11.14.5', + VERSION: '1.11.14.6', NAMESPACE: '4chan X.', boards: {} }; @@ -7605,7 +7605,7 @@ return $.event('QRDialogCreation', null, dialog); }, submit: function(e) { - var captcha, cb, err, extra, filetag, formData, options, post, textOnly, thread, threadID; + var captcha, cb, err, extra, filetag, formData, options, post, ref, textOnly, thread, threadID; if (e != null) { e.preventDefault(); } @@ -7635,10 +7635,13 @@ } else if (g.BOARD.threads[threadID].isClosed) { err = 'You can\'t reply to this thread anymore.'; } else if (!(post.com || post.file)) { - err = 'No file selected.'; + err = 'No comment or file.'; } else if (post.file && thread.fileLimit) { err = 'Max limit of image replies has been reached.'; } + if (g.BOARD.ID === 'r9k' && !((ref = post.com) != null ? ref.match(/[a-z-]/i) : void 0)) { + err || (err = 'Original comment required.'); + } if (QR.captcha.isEnabled && !err) { captcha = QR.captcha.getOne(); if (!captcha) { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index e1b22886d..0ef1d8a53 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 577d2bbe3..87b4d3f74 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.xml b/builds/updates.xml index e06eaa659..2d490b6d1 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index 59a82b27c..f75adc82b 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "meta": { "name": "4chan X", "fork": "ccd0", - "version": "1.11.14.5", - "date": "2015-10-28T02:18:17.245Z", + "version": "1.11.14.6", + "date": "2015-10-30T04:11:49.050Z", "page": "https://www.4chan-x.net/", "downloads": "https://www.4chan-x.net/builds/", "oldVersions": "https://raw.githubusercontent.com/ccd0/4chan-x/",