Release 4chan X v1.14.0.2.

This commit is contained in:
ccd0 2018-01-24 14:21:13 -08:00
parent 1754dd8fb6
commit 06ce3f4e2b
15 changed files with 86 additions and 26 deletions

View File

@ -4,6 +4,9 @@
## v1.14.0 ## 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)] **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. - Fix custom navigation bug from v1.14.0.0 #1774 and older issues #384, #642.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.14.0.1 // @version 1.14.0.2
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.14.0.1 // @version 1.14.0.2
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -157,7 +157,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.14.0.1', VERSION: '1.14.0.2',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6559,7 +6559,7 @@ Post = (function() {
} }
$.extend(file, { $.extend(file, {
url: file.link.href, 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) isVideo: /(webm|mp4)$/i.test(file.link.href)
}); });
size = +file.size.match(/[\d.]+/)[0]; size = +file.size.match(/[\d.]+/)[0];
@ -7159,6 +7159,13 @@ SW = {};
} }
return false; return false;
}, },
urls: {
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/res/" + threadID + ".html";
}
},
selectors: { selectors: {
board: 'form[name="postcontrols"]', board: 'form[name="postcontrols"]',
thread: 'div[id^="thread_"]', thread: 'div[id^="thread_"]',
@ -7258,6 +7265,13 @@ SW = {};
SW.yotsuba = { SW.yotsuba = {
isOPContainerThread: false, isOPContainerThread: false,
urls: {
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/thread/" + threadID;
}
},
selectors: { selectors: {
board: '.board', board: '.board',
thread: '.thread', thread: '.thread',
@ -14089,7 +14103,7 @@ ImageHover = (function() {
} }
}, },
node: 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;
} }
return $.on(this.file.thumb, 'mouseover', ImageHover.mouseover(this)); 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))) { if (!(!BoardConfig.noAudio(this.board.ID) && ((ref = this.file) != null ? ref.isVideo : void 0))) {
return; 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)); return $.on($('.file-info', this.file.text) || this.file.link, 'wheel', Volume.wheel.bind(this.file.thumbLink));
}, },
catalogNode: function() { catalogNode: function() {
@ -19931,7 +19947,10 @@ ThreadWatcher = (function() {
excerpt = data.excerpt; excerpt = data.excerpt;
excerpt || (excerpt = "/" + boardID + "/ - No." + threadID); excerpt || (excerpt = "/" + boardID + "/ - No." + threadID);
link = $.el('a', { link = $.el('a', {
href: "/" + boardID + "/thread/" + threadID, href: "/" + (Site.urls.thread({
boardID: boardID,
threadID: threadID
})),
title: excerpt, title: excerpt,
className: 'watcher-link' className: 'watcher-link'
}); });

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.14.0.1 // @version 1.14.0.2
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -157,7 +157,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.14.0.1', VERSION: '1.14.0.2',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6559,7 +6559,7 @@ Post = (function() {
} }
$.extend(file, { $.extend(file, {
url: file.link.href, 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) isVideo: /(webm|mp4)$/i.test(file.link.href)
}); });
size = +file.size.match(/[\d.]+/)[0]; size = +file.size.match(/[\d.]+/)[0];
@ -7159,6 +7159,13 @@ SW = {};
} }
return false; return false;
}, },
urls: {
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/res/" + threadID + ".html";
}
},
selectors: { selectors: {
board: 'form[name="postcontrols"]', board: 'form[name="postcontrols"]',
thread: 'div[id^="thread_"]', thread: 'div[id^="thread_"]',
@ -7258,6 +7265,13 @@ SW = {};
SW.yotsuba = { SW.yotsuba = {
isOPContainerThread: false, isOPContainerThread: false,
urls: {
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/thread/" + threadID;
}
},
selectors: { selectors: {
board: '.board', board: '.board',
thread: '.thread', thread: '.thread',
@ -14089,7 +14103,7 @@ ImageHover = (function() {
} }
}, },
node: 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;
} }
return $.on(this.file.thumb, 'mouseover', ImageHover.mouseover(this)); 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))) { if (!(!BoardConfig.noAudio(this.board.ID) && ((ref = this.file) != null ? ref.isVideo : void 0))) {
return; 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)); return $.on($('.file-info', this.file.text) || this.file.link, 'wheel', Volume.wheel.bind(this.file.thumbLink));
}, },
catalogNode: function() { catalogNode: function() {
@ -19931,7 +19947,10 @@ ThreadWatcher = (function() {
excerpt = data.excerpt; excerpt = data.excerpt;
excerpt || (excerpt = "/" + boardID + "/ - No." + threadID); excerpt || (excerpt = "/" + boardID + "/ - No." + threadID);
link = $.el('a', { link = $.el('a', {
href: "/" + boardID + "/thread/" + threadID, href: "/" + (Site.urls.thread({
boardID: boardID,
threadID: threadID
})),
title: excerpt, title: excerpt,
className: 'watcher-link' className: 'watcher-link'
}); });

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.14.0.1 // @version 1.14.0.2
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.14.0.1 // @version 1.14.0.2
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -157,7 +157,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.14.0.1', VERSION: '1.14.0.2',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -6559,7 +6559,7 @@ Post = (function() {
} }
$.extend(file, { $.extend(file, {
url: file.link.href, 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) isVideo: /(webm|mp4)$/i.test(file.link.href)
}); });
size = +file.size.match(/[\d.]+/)[0]; size = +file.size.match(/[\d.]+/)[0];
@ -7159,6 +7159,13 @@ SW = {};
} }
return false; return false;
}, },
urls: {
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/res/" + threadID + ".html";
}
},
selectors: { selectors: {
board: 'form[name="postcontrols"]', board: 'form[name="postcontrols"]',
thread: 'div[id^="thread_"]', thread: 'div[id^="thread_"]',
@ -7258,6 +7265,13 @@ SW = {};
SW.yotsuba = { SW.yotsuba = {
isOPContainerThread: false, isOPContainerThread: false,
urls: {
thread: function(arg) {
var boardID, threadID;
boardID = arg.boardID, threadID = arg.threadID;
return boardID + "/thread/" + threadID;
}
},
selectors: { selectors: {
board: '.board', board: '.board',
thread: '.thread', thread: '.thread',
@ -14089,7 +14103,7 @@ ImageHover = (function() {
} }
}, },
node: 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;
} }
return $.on(this.file.thumb, 'mouseover', ImageHover.mouseover(this)); 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))) { if (!(!BoardConfig.noAudio(this.board.ID) && ((ref = this.file) != null ? ref.isVideo : void 0))) {
return; 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)); return $.on($('.file-info', this.file.text) || this.file.link, 'wheel', Volume.wheel.bind(this.file.thumbLink));
}, },
catalogNode: function() { catalogNode: function() {
@ -19931,7 +19947,10 @@ ThreadWatcher = (function() {
excerpt = data.excerpt; excerpt = data.excerpt;
excerpt || (excerpt = "/" + boardID + "/ - No." + threadID); excerpt || (excerpt = "/" + boardID + "/ - No." + threadID);
link = $.el('a', { link = $.el('a', {
href: "/" + boardID + "/thread/" + threadID, href: "/" + (Site.urls.thread({
boardID: boardID,
threadID: threadID
})),
title: excerpt, title: excerpt,
className: 'watcher-link' className: 'watcher-link'
}); });

Binary file not shown.

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": { "4chan-x@4chan-x.net": {
"updates": [ "updates": [
{ {
"version": "1.14.0.1", "version": "1.14.0.2",
"update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx" "update_link": "https://www.4chan-x.net/builds/4chan-X-beta.crx"
} }
] ]

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'> <app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.0.1' /> <updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.0.2' />
</app> </app>
</gupdate> </gupdate>

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": { "4chan-x@4chan-x.net": {
"updates": [ "updates": [
{ {
"version": "1.14.0.1", "version": "1.14.0.2",
"update_link": "https://www.4chan-x.net/builds/4chan-X.crx" "update_link": "https://www.4chan-x.net/builds/4chan-X.crx"
} }
] ]

View File

@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'> <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'> <app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.0.1' /> <updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.0.2' />
</app> </app>
</gupdate> </gupdate>

View File

@ -1,4 +1,4 @@
{ {
"version": "1.14.0.1", "version": "1.14.0.2",
"date": "2018-01-24T19:00:52.569Z" "date": "2018-01-24T22:15:19.430Z"
} }