diff --git a/CHANGELOG.md b/CHANGELOG.md index 246c627b9..154214e97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ### v1.14.5 +**v1.14.5.5** *(2018-12-09)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.5/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.5/builds/4chan-X-noupdate.crx)] +- Fix bug causing errors on threads in overboards from boards with unusual characters in the name. + **v1.14.5.4** *(2018-12-08)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.4/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.5.4/builds/4chan-X-noupdate.crx)] - Tinyboard/vichan improvements: Process posts added by thread updating, thread expansion, and infinite scrolling scripts. - Fire a `PostsRemoved` event when posts are removed. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index 6f5af46a7..29f23bb3a 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 a75b3f8c8..b399c070b 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.5.4 +// @version 1.14.5.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 dac8e218b..87a55bc5c 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.5.4 +// @version 1.14.5.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.4', + VERSION: '1.14.5.5', NAMESPACE: '4chan X.', boards: {} }; @@ -9468,10 +9468,12 @@ Get = (function() { return excerpt; }, threadFromRoot: function(root) { + var board; if (root == null) { return null; } - return g.threads[(root.dataset.board || g.BOARD.ID) + "." + (root.id.match(/\d*$/)[0])]; + board = root.dataset.board; + return g.threads[(board ? encodeURIComponent(board) : g.BOARD.ID) + "." + (root.id.match(/\d*$/)[0])]; }, threadFromNode: function(node) { return Get.threadFromRoot($.x("ancestor-or-self::" + Site.xpath.thread, node)); diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 887785faf..3fa511b78 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 7f64bb414..08f159051 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.5.4 +// @version 1.14.5.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.4', + VERSION: '1.14.5.5', NAMESPACE: '4chan X.', boards: {} }; @@ -9468,10 +9468,12 @@ Get = (function() { return excerpt; }, threadFromRoot: function(root) { + var board; if (root == null) { return null; } - return g.threads[(root.dataset.board || g.BOARD.ID) + "." + (root.id.match(/\d*$/)[0])]; + board = root.dataset.board; + return g.threads[(board ? encodeURIComponent(board) : g.BOARD.ID) + "." + (root.id.match(/\d*$/)[0])]; }, threadFromNode: function(node) { return Get.threadFromRoot($.x("ancestor-or-self::" + Site.xpath.thread, node)); diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 02a6c3d19..9d69ccee2 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 e0d7dafd4..d18951dd5 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.5.4 +// @version 1.14.5.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b80ed68eb..14379c995 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.5.4 +// @version 1.14.5.5 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -198,7 +198,7 @@ docSet = function() { }; g = { - VERSION: '1.14.5.4', + VERSION: '1.14.5.5', NAMESPACE: '4chan X.', boards: {} }; @@ -9468,10 +9468,12 @@ Get = (function() { return excerpt; }, threadFromRoot: function(root) { + var board; if (root == null) { return null; } - return g.threads[(root.dataset.board || g.BOARD.ID) + "." + (root.id.match(/\d*$/)[0])]; + board = root.dataset.board; + return g.threads[(board ? encodeURIComponent(board) : g.BOARD.ID) + "." + (root.id.match(/\d*$/)[0])]; }, threadFromNode: function(node) { return Get.threadFromRoot($.x("ancestor-or-self::" + Site.xpath.thread, node)); diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 635d09b22..9423044e9 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 d56635b8c..888430339 100644 --- a/builds/updates-beta.json +++ b/builds/updates-beta.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.5.4", + "version": "1.14.5.5", "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 5f57ba639..a85c5a1cc 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 fa1002096..afc40f656 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.5.4", + "version": "1.14.5.5", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index c99867b0b..10e3a7b81 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index e1a297484..6e56e3a95 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.5.4", - "date": "2018-12-08T22:05:28.502Z" + "version": "1.14.5.5", + "date": "2018-12-09T16:37:04.282Z" } \ No newline at end of file