Release 4chan X v1.14.0.13.

This commit is contained in:
ccd0 2018-05-01 15:24:31 -07:00
parent dd08860ea0
commit e872a6f861
15 changed files with 98 additions and 83 deletions

View File

@ -4,6 +4,9 @@
## v1.14.0
**v1.14.0.13** *(2018-05-01)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.13/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.13/builds/4chan-X-noupdate.crx)]
- Fix some bugs in data storage.
**v1.14.0.12** *(2018-04-01)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.12/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.14.0.12/builds/4chan-X-noupdate.crx)]
- Merge v1.13.15.10: Show 2018 Apr 01 team names in thread updates and other posts generated from JSON.

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X beta
// @version 1.14.0.12
// @version 1.14.0.13
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -157,7 +157,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.0.12',
VERSION: '1.14.0.13',
NAMESPACE: '4chan X.',
boards: {}
};
@ -5654,25 +5654,29 @@ DataBoard = (function() {
DataBoard.prototype.changes = [];
DataBoard.prototype.save = function(change, cb) {
var changes, snapshot1;
snapshot1 = JSON.stringify(this.allData);
change();
changes = this.changes;
changes.push(change);
this.changes.push(change);
return $.get(this.key, {
boards: {}
}, (function(_this) {
return function(items) {
var c, i, len, snapshot2;
_this.initData(items[_this.key]);
snapshot2 = JSON.stringify(_this.allData);
for (i = 0, len = changes.length; i < len; i++) {
c = changes[i];
c();
var i, len, needSync, ref;
if (!_this.changes.length) {
return;
}
needSync = (items[_this.key].version || 0) > (_this.allData.version || 0);
if (needSync) {
_this.initData(items[_this.key]);
ref = _this.changes;
for (i = 0, len = ref.length; i < len; i++) {
change = ref[i];
change();
}
}
_this.changes = [];
_this.allData.version = (_this.allData.version || 0) + 1;
return $.set(_this.key, _this.allData, function() {
_this.changes = [];
if (snapshot1 !== snapshot2) {
if (needSync) {
if (typeof _this.sync === "function") {
_this.sync();
}
@ -5684,21 +5688,18 @@ DataBoard = (function() {
};
DataBoard.prototype.forceSync = function(cb) {
var changes, snapshot1;
snapshot1 = JSON.stringify(this.allData);
changes = this.changes;
return $.get(this.key, {
boards: {}
}, (function(_this) {
return function(items) {
var c, i, len, snapshot2;
_this.initData(items[_this.key]);
snapshot2 = JSON.stringify(_this.allData);
for (i = 0, len = changes.length; i < len; i++) {
c = changes[i];
c();
}
if (snapshot1 !== snapshot2) {
var change, i, len, ref;
if ((items[_this.key].version || 0) > (_this.allData.version || 0)) {
_this.initData(items[_this.key]);
ref = _this.changes;
for (i = 0, len = ref.length; i < len; i++) {
change = ref[i];
change();
}
if (typeof _this.sync === "function") {
_this.sync();
}
@ -5906,6 +5907,9 @@ DataBoard = (function() {
};
DataBoard.prototype.onSync = function(data) {
if (!((data.version || 0) > (this.allData.version || 0))) {
return;
}
this.initData(data);
return typeof this.sync === "function" ? this.sync() : void 0;
};

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.0.12
// @version 1.14.0.13
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -157,7 +157,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.0.12',
VERSION: '1.14.0.13',
NAMESPACE: '4chan X.',
boards: {}
};
@ -5654,25 +5654,29 @@ DataBoard = (function() {
DataBoard.prototype.changes = [];
DataBoard.prototype.save = function(change, cb) {
var changes, snapshot1;
snapshot1 = JSON.stringify(this.allData);
change();
changes = this.changes;
changes.push(change);
this.changes.push(change);
return $.get(this.key, {
boards: {}
}, (function(_this) {
return function(items) {
var c, i, len, snapshot2;
_this.initData(items[_this.key]);
snapshot2 = JSON.stringify(_this.allData);
for (i = 0, len = changes.length; i < len; i++) {
c = changes[i];
c();
var i, len, needSync, ref;
if (!_this.changes.length) {
return;
}
needSync = (items[_this.key].version || 0) > (_this.allData.version || 0);
if (needSync) {
_this.initData(items[_this.key]);
ref = _this.changes;
for (i = 0, len = ref.length; i < len; i++) {
change = ref[i];
change();
}
}
_this.changes = [];
_this.allData.version = (_this.allData.version || 0) + 1;
return $.set(_this.key, _this.allData, function() {
_this.changes = [];
if (snapshot1 !== snapshot2) {
if (needSync) {
if (typeof _this.sync === "function") {
_this.sync();
}
@ -5684,21 +5688,18 @@ DataBoard = (function() {
};
DataBoard.prototype.forceSync = function(cb) {
var changes, snapshot1;
snapshot1 = JSON.stringify(this.allData);
changes = this.changes;
return $.get(this.key, {
boards: {}
}, (function(_this) {
return function(items) {
var c, i, len, snapshot2;
_this.initData(items[_this.key]);
snapshot2 = JSON.stringify(_this.allData);
for (i = 0, len = changes.length; i < len; i++) {
c = changes[i];
c();
}
if (snapshot1 !== snapshot2) {
var change, i, len, ref;
if ((items[_this.key].version || 0) > (_this.allData.version || 0)) {
_this.initData(items[_this.key]);
ref = _this.changes;
for (i = 0, len = ref.length; i < len; i++) {
change = ref[i];
change();
}
if (typeof _this.sync === "function") {
_this.sync();
}
@ -5906,6 +5907,9 @@ DataBoard = (function() {
};
DataBoard.prototype.onSync = function(data) {
if (!((data.version || 0) > (this.allData.version || 0))) {
return;
}
this.initData(data);
return typeof this.sync === "function" ? this.sync() : void 0;
};

Binary file not shown.

View File

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

View File

@ -1,6 +1,6 @@
// ==UserScript==
// @name 4chan X
// @version 1.14.0.12
// @version 1.14.0.13
// @minGMVer 1.14
// @minFFVer 26
// @namespace 4chan-X
@ -157,7 +157,7 @@ docSet = function() {
};
g = {
VERSION: '1.14.0.12',
VERSION: '1.14.0.13',
NAMESPACE: '4chan X.',
boards: {}
};
@ -5654,25 +5654,29 @@ DataBoard = (function() {
DataBoard.prototype.changes = [];
DataBoard.prototype.save = function(change, cb) {
var changes, snapshot1;
snapshot1 = JSON.stringify(this.allData);
change();
changes = this.changes;
changes.push(change);
this.changes.push(change);
return $.get(this.key, {
boards: {}
}, (function(_this) {
return function(items) {
var c, i, len, snapshot2;
_this.initData(items[_this.key]);
snapshot2 = JSON.stringify(_this.allData);
for (i = 0, len = changes.length; i < len; i++) {
c = changes[i];
c();
var i, len, needSync, ref;
if (!_this.changes.length) {
return;
}
needSync = (items[_this.key].version || 0) > (_this.allData.version || 0);
if (needSync) {
_this.initData(items[_this.key]);
ref = _this.changes;
for (i = 0, len = ref.length; i < len; i++) {
change = ref[i];
change();
}
}
_this.changes = [];
_this.allData.version = (_this.allData.version || 0) + 1;
return $.set(_this.key, _this.allData, function() {
_this.changes = [];
if (snapshot1 !== snapshot2) {
if (needSync) {
if (typeof _this.sync === "function") {
_this.sync();
}
@ -5684,21 +5688,18 @@ DataBoard = (function() {
};
DataBoard.prototype.forceSync = function(cb) {
var changes, snapshot1;
snapshot1 = JSON.stringify(this.allData);
changes = this.changes;
return $.get(this.key, {
boards: {}
}, (function(_this) {
return function(items) {
var c, i, len, snapshot2;
_this.initData(items[_this.key]);
snapshot2 = JSON.stringify(_this.allData);
for (i = 0, len = changes.length; i < len; i++) {
c = changes[i];
c();
}
if (snapshot1 !== snapshot2) {
var change, i, len, ref;
if ((items[_this.key].version || 0) > (_this.allData.version || 0)) {
_this.initData(items[_this.key]);
ref = _this.changes;
for (i = 0, len = ref.length; i < len; i++) {
change = ref[i];
change();
}
if (typeof _this.sync === "function") {
_this.sync();
}
@ -5906,6 +5907,9 @@ DataBoard = (function() {
};
DataBoard.prototype.onSync = function(data) {
if (!((data.version || 0) > (this.allData.version || 0))) {
return;
}
this.initData(data);
return typeof this.sync === "function" ? this.sync() : void 0;
};

Binary file not shown.

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.0.12",
"version": "1.14.0.13",
"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.0.12' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X-beta.crx' version='1.14.0.13' />
</app>
</gupdate>

View File

@ -3,7 +3,7 @@
"4chan-x@4chan-x.net": {
"updates": [
{
"version": "1.14.0.12",
"version": "1.14.0.13",
"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.0.12' />
<updatecheck codebase='https://www.4chan-x.net/builds/4chan-X.crx' version='1.14.0.13' />
</app>
</gupdate>

View File

@ -1,4 +1,4 @@
{
"version": "1.14.0.12",
"date": "2018-04-01T04:59:25.833Z"
"version": "1.14.0.13",
"date": "2018-05-01T22:20:21.861Z"
}