diff --git a/CHANGELOG.md b/CHANGELOG.md index c87a22ea4..9022fb6fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ -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.16 + +**v1.14.16.0** *(2019-12-20)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.16.0/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.16.0/builds/4chan-X-noupdate.crx)] +- Based on v1.14.15.2. +- Fix parsing of spoilered images on kissu.moe. + ### v1.14.15 **v1.14.15.2** *(2019-12-20)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.15.2/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.15.2/builds/4chan-X-noupdate.crx)] diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index efe3ed790..b62130e9f 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 86db99d6a..09f14e382 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.15.2 +// @version 1.14.16.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 f2a337da6..773b41864 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.15.2 +// @version 1.14.16.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -214,7 +214,7 @@ docSet = function() { }; g = { - VERSION: '1.14.15.2', + VERSION: '1.14.16.0', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -7988,7 +7988,7 @@ SW = {}; if (!(infoNode = indexOf.call((ref = link.nextSibling) != null ? ref.textContent : void 0, '(') >= 0 ? link.nextSibling : link.nextElementSibling)) { return false; } - if (!(info = infoNode.textContent.match(/\((Spoiler Image, )?([\d.]+ [KMG]?B).*\)/))) { + if (!(info = infoNode.textContent.match(/\((.*,\s*)?([\d.]+ [KMG]?B).*\)/))) { return false; } nameNode = $('.postfilename', text); @@ -8000,7 +8000,7 @@ SW = {}; if (thumb) { $.extend(file, { thumbURL: /\/static\//.test(thumb.src) && /\.(?:gif|jpe?g|png)$/.test(link.href) ? link.href : thumb.src, - isSpoiler: !!info[1] || link.textContent === 'Spoiler Image' + isSpoiler: /^Spoiler/i.test(info[1] || '') || link.textContent === 'Spoiler Image' }); } return true; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index e38540d7e..9c1a51fef 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 478effa68..aa93e49cb 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.15.2 +// @version 1.14.16.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -214,7 +214,7 @@ docSet = function() { }; g = { - VERSION: '1.14.15.2', + VERSION: '1.14.16.0', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -7988,7 +7988,7 @@ SW = {}; if (!(infoNode = indexOf.call((ref = link.nextSibling) != null ? ref.textContent : void 0, '(') >= 0 ? link.nextSibling : link.nextElementSibling)) { return false; } - if (!(info = infoNode.textContent.match(/\((Spoiler Image, )?([\d.]+ [KMG]?B).*\)/))) { + if (!(info = infoNode.textContent.match(/\((.*,\s*)?([\d.]+ [KMG]?B).*\)/))) { return false; } nameNode = $('.postfilename', text); @@ -8000,7 +8000,7 @@ SW = {}; if (thumb) { $.extend(file, { thumbURL: /\/static\//.test(thumb.src) && /\.(?:gif|jpe?g|png)$/.test(link.href) ? link.href : thumb.src, - isSpoiler: !!info[1] || link.textContent === 'Spoiler Image' + isSpoiler: /^Spoiler/i.test(info[1] || '') || link.textContent === 'Spoiler Image' }); } return true; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 9defd2137..3460b78ad 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 d0be3fbd8..038271eba 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.15.2 +// @version 1.14.16.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 5ad1ccc25..30dcdc9f6 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.15.2 +// @version 1.14.16.0 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -214,7 +214,7 @@ docSet = function() { }; g = { - VERSION: '1.14.15.2', + VERSION: '1.14.16.0', NAMESPACE: '4chan X.', sites: Object.create(null), boards: Object.create(null) @@ -7988,7 +7988,7 @@ SW = {}; if (!(infoNode = indexOf.call((ref = link.nextSibling) != null ? ref.textContent : void 0, '(') >= 0 ? link.nextSibling : link.nextElementSibling)) { return false; } - if (!(info = infoNode.textContent.match(/\((Spoiler Image, )?([\d.]+ [KMG]?B).*\)/))) { + if (!(info = infoNode.textContent.match(/\((.*,\s*)?([\d.]+ [KMG]?B).*\)/))) { return false; } nameNode = $('.postfilename', text); @@ -8000,7 +8000,7 @@ SW = {}; if (thumb) { $.extend(file, { thumbURL: /\/static\//.test(thumb.src) && /\.(?:gif|jpe?g|png)$/.test(link.href) ? link.href : thumb.src, - isSpoiler: !!info[1] || link.textContent === 'Spoiler Image' + isSpoiler: /^Spoiler/i.test(info[1] || '') || link.textContent === 'Spoiler Image' }); } return true; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 806c36ee3..471169ba6 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 bbf72bd55..c7471e47f 100644 --- a/builds/updates-beta.json +++ b/builds/updates-beta.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.15.2", + "version": "1.14.16.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 fc29ea7f2..0bc1e0f17 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 5a9b9f210..a7cccdec0 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.15.2", + "version": "1.14.16.0", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index cf26920bb..66f2c4f88 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index a8e4231fc..da3ee073e 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.15.2", - "date": "2019-12-20T10:16:14.905Z" + "version": "1.14.16.0", + "date": "2019-12-20T21:19:44.648Z" } \ No newline at end of file