diff --git a/CHANGELOG.md b/CHANGELOG.md index 531bb4615..563e78db2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ ## v1.14.0 +**v1.14.0.2** *(2018-01-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.2/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.2/builds/4chan-X-noupdate.crx)] +- Small bugfixes for Tinyboard. + **v1.14.0.1** *(2018-01-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.1/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.1/builds/4chan-X-noupdate.crx)] - Fix custom navigation bug from v1.14.0.0 #1774 and older issues #384, #642. diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index aa8648bcb..5595c11a0 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 0f0da9ce6..fe7ecaa6d 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.0.1 +// @version 1.14.0.2 // @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 304a7eeb4..9dd79bece 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.0.1 +// @version 1.14.0.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -157,7 +157,7 @@ docSet = function() { }; g = { - VERSION: '1.14.0.1', + VERSION: '1.14.0.2', NAMESPACE: '4chan X.', boards: {} }; @@ -6559,7 +6559,7 @@ Post = (function() { } $.extend(file, { url: file.link.href, - isImage: /(jpg|png|gif)$/i.test(file.link.href), + isImage: /(jpe?g|png|gif)$/i.test(file.link.href), isVideo: /(webm|mp4)$/i.test(file.link.href) }); size = +file.size.match(/[\d.]+/)[0]; @@ -7159,6 +7159,13 @@ SW = {}; } return false; }, + urls: { + thread: function(arg) { + var boardID, threadID; + boardID = arg.boardID, threadID = arg.threadID; + return boardID + "/res/" + threadID + ".html"; + } + }, selectors: { board: 'form[name="postcontrols"]', thread: 'div[id^="thread_"]', @@ -7258,6 +7265,13 @@ SW = {}; SW.yotsuba = { isOPContainerThread: false, + urls: { + thread: function(arg) { + var boardID, threadID; + boardID = arg.boardID, threadID = arg.threadID; + return boardID + "/thread/" + threadID; + } + }, selectors: { board: '.board', thread: '.thread', @@ -14089,7 +14103,7 @@ ImageHover = (function() { } }, node: function() { - if (!(this.file && (this.file.isImage || this.file.isVideo))) { + if (!(this.file && (this.file.isImage || this.file.isVideo) && this.file.thumb)) { return; } return $.on(this.file.thumb, 'mouseover', ImageHover.mouseover(this)); @@ -14790,7 +14804,9 @@ Volume = (function() { if (!(!BoardConfig.noAudio(this.board.ID) && ((ref = this.file) != null ? ref.isVideo : void 0))) { return; } - $.on(this.file.thumb, 'wheel', Volume.wheel.bind(Header.hover)); + if (this.file.thumb) { + $.on(this.file.thumb, 'wheel', Volume.wheel.bind(Header.hover)); + } return $.on($('.file-info', this.file.text) || this.file.link, 'wheel', Volume.wheel.bind(this.file.thumbLink)); }, catalogNode: function() { @@ -19931,7 +19947,10 @@ ThreadWatcher = (function() { excerpt = data.excerpt; excerpt || (excerpt = "/" + boardID + "/ - No." + threadID); link = $.el('a', { - href: "/" + boardID + "/thread/" + threadID, + href: "/" + (Site.urls.thread({ + boardID: boardID, + threadID: threadID + })), title: excerpt, className: 'watcher-link' }); diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index c54630ee4..d5f1065c0 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 7cb12645b..c46507eff 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.0.1 +// @version 1.14.0.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -157,7 +157,7 @@ docSet = function() { }; g = { - VERSION: '1.14.0.1', + VERSION: '1.14.0.2', NAMESPACE: '4chan X.', boards: {} }; @@ -6559,7 +6559,7 @@ Post = (function() { } $.extend(file, { url: file.link.href, - isImage: /(jpg|png|gif)$/i.test(file.link.href), + isImage: /(jpe?g|png|gif)$/i.test(file.link.href), isVideo: /(webm|mp4)$/i.test(file.link.href) }); size = +file.size.match(/[\d.]+/)[0]; @@ -7159,6 +7159,13 @@ SW = {}; } return false; }, + urls: { + thread: function(arg) { + var boardID, threadID; + boardID = arg.boardID, threadID = arg.threadID; + return boardID + "/res/" + threadID + ".html"; + } + }, selectors: { board: 'form[name="postcontrols"]', thread: 'div[id^="thread_"]', @@ -7258,6 +7265,13 @@ SW = {}; SW.yotsuba = { isOPContainerThread: false, + urls: { + thread: function(arg) { + var boardID, threadID; + boardID = arg.boardID, threadID = arg.threadID; + return boardID + "/thread/" + threadID; + } + }, selectors: { board: '.board', thread: '.thread', @@ -14089,7 +14103,7 @@ ImageHover = (function() { } }, node: function() { - if (!(this.file && (this.file.isImage || this.file.isVideo))) { + if (!(this.file && (this.file.isImage || this.file.isVideo) && this.file.thumb)) { return; } return $.on(this.file.thumb, 'mouseover', ImageHover.mouseover(this)); @@ -14790,7 +14804,9 @@ Volume = (function() { if (!(!BoardConfig.noAudio(this.board.ID) && ((ref = this.file) != null ? ref.isVideo : void 0))) { return; } - $.on(this.file.thumb, 'wheel', Volume.wheel.bind(Header.hover)); + if (this.file.thumb) { + $.on(this.file.thumb, 'wheel', Volume.wheel.bind(Header.hover)); + } return $.on($('.file-info', this.file.text) || this.file.link, 'wheel', Volume.wheel.bind(this.file.thumbLink)); }, catalogNode: function() { @@ -19931,7 +19947,10 @@ ThreadWatcher = (function() { excerpt = data.excerpt; excerpt || (excerpt = "/" + boardID + "/ - No." + threadID); link = $.el('a', { - href: "/" + boardID + "/thread/" + threadID, + href: "/" + (Site.urls.thread({ + boardID: boardID, + threadID: threadID + })), title: excerpt, className: 'watcher-link' }); diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index dd4cdd5e8..7264f3f72 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 b3ce6974e..20379c580 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.0.1 +// @version 1.14.0.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 0455e486b..3941bc9a1 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.14.0.1 +// @version 1.14.0.2 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -157,7 +157,7 @@ docSet = function() { }; g = { - VERSION: '1.14.0.1', + VERSION: '1.14.0.2', NAMESPACE: '4chan X.', boards: {} }; @@ -6559,7 +6559,7 @@ Post = (function() { } $.extend(file, { url: file.link.href, - isImage: /(jpg|png|gif)$/i.test(file.link.href), + isImage: /(jpe?g|png|gif)$/i.test(file.link.href), isVideo: /(webm|mp4)$/i.test(file.link.href) }); size = +file.size.match(/[\d.]+/)[0]; @@ -7159,6 +7159,13 @@ SW = {}; } return false; }, + urls: { + thread: function(arg) { + var boardID, threadID; + boardID = arg.boardID, threadID = arg.threadID; + return boardID + "/res/" + threadID + ".html"; + } + }, selectors: { board: 'form[name="postcontrols"]', thread: 'div[id^="thread_"]', @@ -7258,6 +7265,13 @@ SW = {}; SW.yotsuba = { isOPContainerThread: false, + urls: { + thread: function(arg) { + var boardID, threadID; + boardID = arg.boardID, threadID = arg.threadID; + return boardID + "/thread/" + threadID; + } + }, selectors: { board: '.board', thread: '.thread', @@ -14089,7 +14103,7 @@ ImageHover = (function() { } }, node: function() { - if (!(this.file && (this.file.isImage || this.file.isVideo))) { + if (!(this.file && (this.file.isImage || this.file.isVideo) && this.file.thumb)) { return; } return $.on(this.file.thumb, 'mouseover', ImageHover.mouseover(this)); @@ -14790,7 +14804,9 @@ Volume = (function() { if (!(!BoardConfig.noAudio(this.board.ID) && ((ref = this.file) != null ? ref.isVideo : void 0))) { return; } - $.on(this.file.thumb, 'wheel', Volume.wheel.bind(Header.hover)); + if (this.file.thumb) { + $.on(this.file.thumb, 'wheel', Volume.wheel.bind(Header.hover)); + } return $.on($('.file-info', this.file.text) || this.file.link, 'wheel', Volume.wheel.bind(this.file.thumbLink)); }, catalogNode: function() { @@ -19931,7 +19947,10 @@ ThreadWatcher = (function() { excerpt = data.excerpt; excerpt || (excerpt = "/" + boardID + "/ - No." + threadID); link = $.el('a', { - href: "/" + boardID + "/thread/" + threadID, + href: "/" + (Site.urls.thread({ + boardID: boardID, + threadID: threadID + })), title: excerpt, className: 'watcher-link' }); diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 839eeaab0..56ae83920 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 b8cb8f403..46dbc6f77 100644 --- a/builds/updates-beta.json +++ b/builds/updates-beta.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.0.1", + "version": "1.14.0.2", "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 8d0a164ca..57c730706 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 4948c83e3..f65a79e38 100644 --- a/builds/updates.json +++ b/builds/updates.json @@ -3,7 +3,7 @@ "4chan-x@4chan-x.net": { "updates": [ { - "version": "1.14.0.1", + "version": "1.14.0.2", "update_link": "https://www.4chan-x.net/builds/4chan-X.crx" } ] diff --git a/builds/updates.xml b/builds/updates.xml index 7e606617c..39bfedf1b 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/version.json b/version.json index 2e79dff7a..ac049cb46 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "version": "1.14.0.1", - "date": "2018-01-24T19:00:52.569Z" + "version": "1.14.0.2", + "date": "2018-01-24T22:15:19.430Z" } \ No newline at end of file