Release 4chan X v1.14.20.2.

This commit is contained in:
ccd0 2020-08-24 14:54:42 -07:00
parent f3de925e42
commit e2a62f7c10
15 changed files with 47 additions and 23 deletions

View File

@ -4,6 +4,9 @@
### v1.14.20
**v1.14.20.2** *(2020-08-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.20.2/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.20.2/builds/4chan-X-noupdate.crx)]
- Fix index not working on /vg/ when sort mode is last reply. https://github.com/ccd0/4chan-x/issues/2685#issuecomment-679311712
**v1.14.20.1** *(2020-08-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.20.1/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.20.1/builds/4chan-X-noupdate.crx)]
- Update for 4chan /vg/ change.

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.14.20.1
// @version 1.14.20.2
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -218,7 +218,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.20.1',
VERSION: '1.14.20.2',
NAMESPACE: '4chan X.',
sites: Object.create(null),
boards: Object.create(null)
@ -12389,7 +12389,7 @@ Index = (function() {
$.add(thread.OP.nodes.post, nodes.replies);
},
sort: function() {
var lastlong, lastlongD, liveThreadData, liveThreadIDs, sortType, thread, threadIDs;
var lastlong, lastlongD, liveThreadData, liveThreadIDs, repliesAvailable, sortType, thread, threadIDs;
liveThreadIDs = Index.liveThreadIDs, liveThreadData = Index.liveThreadData;
if (!liveThreadData) {
return;
@ -12400,8 +12400,15 @@ Index = (function() {
switch (sortType) {
case 'lastreply':
case 'lastlong':
repliesAvailable = liveThreadData.some(function(thread) {
var ref;
return (ref = thread.last_replies) != null ? ref.length : void 0;
});
lastlong = function(thread) {
var i, k, len, r, ref;
var i, k, len, r, ref, ref1;
if (!repliesAvailable) {
return thread.last_modified;
}
ref = thread.last_replies || [];
for (i = k = ref.length - 1; k >= 0; i = k += -1) {
r = ref[i];
@ -12416,7 +12423,7 @@ Index = (function() {
return r;
}
}
if (thread.omitted_posts) {
if (thread.omitted_posts && ((ref1 = thread.last_replies) != null ? ref1.length : void 0)) {
return thread.last_replies[0];
} else {
return thread;

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.20.1
// @version 1.14.20.2
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -218,7 +218,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.20.1',
VERSION: '1.14.20.2',
NAMESPACE: '4chan X.',
sites: Object.create(null),
boards: Object.create(null)
@ -12389,7 +12389,7 @@ Index = (function() {
$.add(thread.OP.nodes.post, nodes.replies);
},
sort: function() {
var lastlong, lastlongD, liveThreadData, liveThreadIDs, sortType, thread, threadIDs;
var lastlong, lastlongD, liveThreadData, liveThreadIDs, repliesAvailable, sortType, thread, threadIDs;
liveThreadIDs = Index.liveThreadIDs, liveThreadData = Index.liveThreadData;
if (!liveThreadData) {
return;
@ -12400,8 +12400,15 @@ Index = (function() {
switch (sortType) {
case 'lastreply':
case 'lastlong':
repliesAvailable = liveThreadData.some(function(thread) {
var ref;
return (ref = thread.last_replies) != null ? ref.length : void 0;
});
lastlong = function(thread) {
var i, k, len, r, ref;
var i, k, len, r, ref, ref1;
if (!repliesAvailable) {
return thread.last_modified;
}
ref = thread.last_replies || [];
for (i = k = ref.length - 1; k >= 0; i = k += -1) {
r = ref[i];
@ -12416,7 +12423,7 @@ Index = (function() {
return r;
}
}
if (thread.omitted_posts) {
if (thread.omitted_posts && ((ref1 = thread.last_replies) != null ? ref1.length : void 0)) {
return thread.last_replies[0];
} else {
return thread;

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.20.1
// @version 1.14.20.2
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -218,7 +218,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.20.1',
VERSION: '1.14.20.2',
NAMESPACE: '4chan X.',
sites: Object.create(null),
boards: Object.create(null)
@ -12389,7 +12389,7 @@ Index = (function() {
$.add(thread.OP.nodes.post, nodes.replies);
},
sort: function() {
var lastlong, lastlongD, liveThreadData, liveThreadIDs, sortType, thread, threadIDs;
var lastlong, lastlongD, liveThreadData, liveThreadIDs, repliesAvailable, sortType, thread, threadIDs;
liveThreadIDs = Index.liveThreadIDs, liveThreadData = Index.liveThreadData;
if (!liveThreadData) {
return;
@ -12400,8 +12400,15 @@ Index = (function() {
switch (sortType) {
case 'lastreply':
case 'lastlong':
repliesAvailable = liveThreadData.some(function(thread) {
var ref;
return (ref = thread.last_replies) != null ? ref.length : void 0;
});
lastlong = function(thread) {
var i, k, len, r, ref;
var i, k, len, r, ref, ref1;
if (!repliesAvailable) {
return thread.last_modified;
}
ref = thread.last_replies || [];
for (i = k = ref.length - 1; k >= 0; i = k += -1) {
r = ref[i];
@ -12416,7 +12423,7 @@ Index = (function() {
return r;
}
}
if (thread.omitted_posts) {
if (thread.omitted_posts && ((ref1 = thread.last_replies) != null ? ref1.length : void 0)) {
return thread.last_replies[0];
} else {
return thread;

Binary file not shown.

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.20.1",
"version": "1.14.20.2",
"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'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='lacclbnghgdicfifcamcmcnilckjamag'>
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.20.1' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.20.2' />
</app>
</gupdate>

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{
"version": "1.14.20.1",
"date": "2020-08-24T15:40:29.833Z"
"version": "1.14.20.2",
"date": "2020-08-24T21:49:12.412Z"
}