diff --git a/CHANGELOG.md b/CHANGELOG.md index 94882eb41..616540ae5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ -Sometimes the changelog has notes (not comprehensive) acknowledging people's work. This does not mean the changes are their fault, only that their code was used. All changes to the script are chosen by and the fault of the maintainer (ccd0). +### v1.14.19 + +**v1.14.19.0** *(2020-05-12)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.19.0/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.19.0/builds/4chan-X-noupdate.crx)] +- Based on v1.14.18.1. +- Fix issue where shift-click on Quick Reply submit to bypass warning did not use captcha when posting. +- Fix Gallery 'Stretch to Fit' on sites with multifile posting. + ### v1.14.18 **v1.14.18.1** *(2020-04-30)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.18.1/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.18.1/builds/4chan-X-noupdate.crx)] diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 47ec21c86..1ee7e7fff 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 08bb0f249..50c56eb9b 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.14.18.1 +// @version 1.14.19.0 // @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 c1646e932..c551a9656 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.14.18.1 +// @version 1.14.19.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -218,7 +218,7 @@ docSet = function() { }; g = { - VERSION: '1.14.18.1', + VERSION: '1.14.19.0', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -14936,7 +14936,7 @@ Gallery = (function() { var containerHeight, containerWidth, current, dim, frame, height, margin, minHeight, ref, ref1, ref2, ref3, style, width; ref = Gallery.nodes, current = ref.current, frame = ref.frame; style = current.style; - if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts.get(current.dataset.post)) != null ? ref1.file.dimensions : void 0)) { + if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts.get(current.dataset.post)) != null ? ref1.files[+current.dataset.file].dimensions : void 0)) { ref2 = dim.split('x'), width = ref2[0], height = ref2[1]; containerWidth = frame.clientWidth; containerHeight = doc.clientHeight - 25; @@ -24888,7 +24888,7 @@ QR = (function() { 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 && !(/\b_ct=/.test(d.cookie) && threadID) && !err) { + if (QR.captcha.isEnabled && !(/\b_ct=/.test(d.cookie) && threadID) && !(err && !force)) { captcha = QR.captcha.getOne(!!threadID) || Captcha.cache.request(!!threadID); if (!captcha) { err = 'No valid captcha.'; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 9edcb0353..aa60c9a0b 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 58e8ff207..f062b6958 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.18.1 +// @version 1.14.19.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -218,7 +218,7 @@ docSet = function() { }; g = { - VERSION: '1.14.18.1', + VERSION: '1.14.19.0', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -14936,7 +14936,7 @@ Gallery = (function() { var containerHeight, containerWidth, current, dim, frame, height, margin, minHeight, ref, ref1, ref2, ref3, style, width; ref = Gallery.nodes, current = ref.current, frame = ref.frame; style = current.style; - if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts.get(current.dataset.post)) != null ? ref1.file.dimensions : void 0)) { + if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts.get(current.dataset.post)) != null ? ref1.files[+current.dataset.file].dimensions : void 0)) { ref2 = dim.split('x'), width = ref2[0], height = ref2[1]; containerWidth = frame.clientWidth; containerHeight = doc.clientHeight - 25; @@ -24888,7 +24888,7 @@ QR = (function() { 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 && !(/\b_ct=/.test(d.cookie) && threadID) && !err) { + if (QR.captcha.isEnabled && !(/\b_ct=/.test(d.cookie) && threadID) && !(err && !force)) { captcha = QR.captcha.getOne(!!threadID) || Captcha.cache.request(!!threadID); if (!captcha) { err = 'No valid captcha.'; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 23d24ffb5..aed2a8bf8 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 624919bff..6a2beec6a 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.18.1 +// @version 1.14.19.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 58568063d..a9a731af8 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.18.1 +// @version 1.14.19.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -218,7 +218,7 @@ docSet = function() { }; g = { - VERSION: '1.14.18.1', + VERSION: '1.14.19.0', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -14936,7 +14936,7 @@ Gallery = (function() { var containerHeight, containerWidth, current, dim, frame, height, margin, minHeight, ref, ref1, ref2, ref3, style, width; ref = Gallery.nodes, current = ref.current, frame = ref.frame; style = current.style; - if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts.get(current.dataset.post)) != null ? ref1.file.dimensions : void 0)) { + if (Conf['Stretch to Fit'] && (dim = (ref1 = g.posts.get(current.dataset.post)) != null ? ref1.files[+current.dataset.file].dimensions : void 0)) { ref2 = dim.split('x'), width = ref2[0], height = ref2[1]; containerWidth = frame.clientWidth; containerHeight = doc.clientHeight - 25; @@ -24888,7 +24888,7 @@ QR = (function() { 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 && !(/\b_ct=/.test(d.cookie) && threadID) && !err) { + if (QR.captcha.isEnabled && !(/\b_ct=/.test(d.cookie) && threadID) && !(err && !force)) { captcha = QR.captcha.getOne(!!threadID) || Captcha.cache.request(!!threadID); if (!captcha) { err = 'No valid captcha.'; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index bc78cd8c3..e24a5307f 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.json b/builds/updates-beta.json index 644d2f943..a7b4d1811 100644 --- a/builds/updates-beta.json +++ b/builds/updates-beta.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.18.1", + "version": "1.14.19.0", "update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx" } ] diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index a865d93f6..a6b8a2ead 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.json b/builds/updates.json index 2753e80e5..afe2b540a 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.18.1", + "version": "1.14.19.0", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index 770965e57..67221f32b 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index da6e5891d..4ce76ca4b 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.18.1", - "date": "2020-04-30T03:22:19.243Z" + "version": "1.14.19.0", + "date": "2020-05-12T14:56:12.604Z" } \ No newline at end of file