Release 4chan X v1.13.14.8.

This commit is contained in:
ccd0 2017-11-15 21:58:15 -08:00
parent 883eba7049
commit 2ac4924cf4
15 changed files with 110 additions and 62 deletions

View File

@ -4,6 +4,9 @@
### v1.13.14 ### v1.13.14
**v1.13.14.8** *(2017-11-16)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.14.8/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.14.8/builds/4chan-X-noupdate.crx)]
- Yet more Greasemonkey 4 related fixes.
**v1.13.14.7** *(2017-11-15)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.14.7/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.14.7/builds/4chan-X-noupdate.crx)] **v1.13.14.7** *(2017-11-15)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.14.7/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.14.7/builds/4chan-X-noupdate.crx)]
- More Greasemonkey 4 related fixes. - More Greasemonkey 4 related fixes.

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.13.14.7 // @version 1.13.14.8
// @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.13.14.7 // @version 1.13.14.8
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -159,7 +159,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.13.14.7', VERSION: '1.13.14.8',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -11368,7 +11368,7 @@ Settings = (function() {
} }
}, },
upgrade: function(data, version) { upgrade: function(data, version) {
var addCSS, addSauces, boardID, changes, compareString, j, k, key, len, len1, list, name, record, ref, ref1, ref2, ref3, ref4, ref5, ref6, rice, set, setD, type, uids, value; var addCSS, addSauces, boardID, changes, compareString, corrupted, j, k, key, len, len1, list, name, record, ref, ref1, ref2, ref3, ref4, ref5, ref6, rice, set, setD, type, uids, val, val2, value;
changes = {}; changes = {};
set = function(key, value) { set = function(key, value) {
return data[key] = changes[key] = value; return data[key] = changes[key] = value;
@ -11396,9 +11396,35 @@ Settings = (function() {
return set('usercss', css + '\n\n' + data['usercss']); return set('usercss', css + '\n\n' + data['usercss']);
} }
}; };
if ((corrupted = version[0] === '"')) {
try {
version = JSON.parse(version);
} catch (_error) {}
}
compareString = version.replace(/\d+/g, function(x) { compareString = version.replace(/\d+/g, function(x) {
return ('0000' + x).slice(-5); return ('0000' + x).slice(-5);
}); });
if (compareString < '00001.00013.00014.00008') {
for (key in data) {
val = data[key];
if (!(typeof val === 'string' && typeof Conf[key] !== 'string' && (key !== 'Index Sort' && key !== 'Last Long Reply Thresholds 0' && key !== 'Last Long Reply Thresholds 1'))) {
continue;
}
corrupted = true;
break;
}
}
if (corrupted) {
for (key in data) {
val = data[key];
if (typeof val === 'string') {
try {
val2 = JSON.parse(val);
set(key, val2);
} catch (_error) {}
}
}
}
if (compareString < '00001.00011.00008.00000') { if (compareString < '00001.00011.00008.00000') {
if (data['Fixed Thread Watcher'] == null) { if (data['Fixed Thread Watcher'] == null) {
set('Fixed Thread Watcher', (ref = data['Toggleable Thread Watcher']) != null ? ref : true); set('Fixed Thread Watcher', (ref = data['Toggleable Thread Watcher']) != null ? ref : true);
@ -20141,6 +20167,9 @@ Captcha = {};
if (captchas == null) { if (captchas == null) {
captchas = []; captchas = [];
} }
if (!(captchas instanceof Array)) {
captchas = [];
}
this.captchas = captchas; this.captchas = captchas;
return this.count(); return this.count();
}, },
@ -24680,21 +24709,7 @@ Main = (function() {
return; return;
} }
return $.asap(docSet, function() { return $.asap(docSet, function() {
var changes, ref3, val, val2; var ref3, val;
if (typeof items.watchedThreads === 'string') {
changes = {};
for (key in items) {
val = items[key];
if (typeof val === 'string') {
try {
val2 = JSON.parse(val);
changes[key] = val2;
} catch (_error) {}
}
}
$.extend(items, changes);
$.set(changes);
}
if ($.cantSet) { if ($.cantSet) {
} else if (items.previousversion == null) { } else if (items.previousversion == null) {

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.13.14.7 // @version 1.13.14.8
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -159,7 +159,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.13.14.7', VERSION: '1.13.14.8',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -11368,7 +11368,7 @@ Settings = (function() {
} }
}, },
upgrade: function(data, version) { upgrade: function(data, version) {
var addCSS, addSauces, boardID, changes, compareString, j, k, key, len, len1, list, name, record, ref, ref1, ref2, ref3, ref4, ref5, ref6, rice, set, setD, type, uids, value; var addCSS, addSauces, boardID, changes, compareString, corrupted, j, k, key, len, len1, list, name, record, ref, ref1, ref2, ref3, ref4, ref5, ref6, rice, set, setD, type, uids, val, val2, value;
changes = {}; changes = {};
set = function(key, value) { set = function(key, value) {
return data[key] = changes[key] = value; return data[key] = changes[key] = value;
@ -11396,9 +11396,35 @@ Settings = (function() {
return set('usercss', css + '\n\n' + data['usercss']); return set('usercss', css + '\n\n' + data['usercss']);
} }
}; };
if ((corrupted = version[0] === '"')) {
try {
version = JSON.parse(version);
} catch (_error) {}
}
compareString = version.replace(/\d+/g, function(x) { compareString = version.replace(/\d+/g, function(x) {
return ('0000' + x).slice(-5); return ('0000' + x).slice(-5);
}); });
if (compareString < '00001.00013.00014.00008') {
for (key in data) {
val = data[key];
if (!(typeof val === 'string' && typeof Conf[key] !== 'string' && (key !== 'Index Sort' && key !== 'Last Long Reply Thresholds 0' && key !== 'Last Long Reply Thresholds 1'))) {
continue;
}
corrupted = true;
break;
}
}
if (corrupted) {
for (key in data) {
val = data[key];
if (typeof val === 'string') {
try {
val2 = JSON.parse(val);
set(key, val2);
} catch (_error) {}
}
}
}
if (compareString < '00001.00011.00008.00000') { if (compareString < '00001.00011.00008.00000') {
if (data['Fixed Thread Watcher'] == null) { if (data['Fixed Thread Watcher'] == null) {
set('Fixed Thread Watcher', (ref = data['Toggleable Thread Watcher']) != null ? ref : true); set('Fixed Thread Watcher', (ref = data['Toggleable Thread Watcher']) != null ? ref : true);
@ -20141,6 +20167,9 @@ Captcha = {};
if (captchas == null) { if (captchas == null) {
captchas = []; captchas = [];
} }
if (!(captchas instanceof Array)) {
captchas = [];
}
this.captchas = captchas; this.captchas = captchas;
return this.count(); return this.count();
}, },
@ -24680,21 +24709,7 @@ Main = (function() {
return; return;
} }
return $.asap(docSet, function() { return $.asap(docSet, function() {
var changes, ref3, val, val2; var ref3, val;
if (typeof items.watchedThreads === 'string') {
changes = {};
for (key in items) {
val = items[key];
if (typeof val === 'string') {
try {
val2 = JSON.parse(val);
changes[key] = val2;
} catch (_error) {}
}
}
$.extend(items, changes);
$.set(changes);
}
if ($.cantSet) { if ($.cantSet) {
} else if (items.previousversion == null) { } else if (items.previousversion == null) {

Binary file not shown.

View File

@ -1,6 +1,6 @@
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.13.14.7 // @version 1.13.14.8
// @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.13.14.7 // @version 1.13.14.8
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -159,7 +159,7 @@ docSet = function() {
}; };
g = { g = {
VERSION: '1.13.14.7', VERSION: '1.13.14.8',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
boards: {} boards: {}
}; };
@ -11368,7 +11368,7 @@ Settings = (function() {
} }
}, },
upgrade: function(data, version) { upgrade: function(data, version) {
var addCSS, addSauces, boardID, changes, compareString, j, k, key, len, len1, list, name, record, ref, ref1, ref2, ref3, ref4, ref5, ref6, rice, set, setD, type, uids, value; var addCSS, addSauces, boardID, changes, compareString, corrupted, j, k, key, len, len1, list, name, record, ref, ref1, ref2, ref3, ref4, ref5, ref6, rice, set, setD, type, uids, val, val2, value;
changes = {}; changes = {};
set = function(key, value) { set = function(key, value) {
return data[key] = changes[key] = value; return data[key] = changes[key] = value;
@ -11396,9 +11396,35 @@ Settings = (function() {
return set('usercss', css + '\n\n' + data['usercss']); return set('usercss', css + '\n\n' + data['usercss']);
} }
}; };
if ((corrupted = version[0] === '"')) {
try {
version = JSON.parse(version);
} catch (_error) {}
}
compareString = version.replace(/\d+/g, function(x) { compareString = version.replace(/\d+/g, function(x) {
return ('0000' + x).slice(-5); return ('0000' + x).slice(-5);
}); });
if (compareString < '00001.00013.00014.00008') {
for (key in data) {
val = data[key];
if (!(typeof val === 'string' && typeof Conf[key] !== 'string' && (key !== 'Index Sort' && key !== 'Last Long Reply Thresholds 0' && key !== 'Last Long Reply Thresholds 1'))) {
continue;
}
corrupted = true;
break;
}
}
if (corrupted) {
for (key in data) {
val = data[key];
if (typeof val === 'string') {
try {
val2 = JSON.parse(val);
set(key, val2);
} catch (_error) {}
}
}
}
if (compareString < '00001.00011.00008.00000') { if (compareString < '00001.00011.00008.00000') {
if (data['Fixed Thread Watcher'] == null) { if (data['Fixed Thread Watcher'] == null) {
set('Fixed Thread Watcher', (ref = data['Toggleable Thread Watcher']) != null ? ref : true); set('Fixed Thread Watcher', (ref = data['Toggleable Thread Watcher']) != null ? ref : true);
@ -20141,6 +20167,9 @@ Captcha = {};
if (captchas == null) { if (captchas == null) {
captchas = []; captchas = [];
} }
if (!(captchas instanceof Array)) {
captchas = [];
}
this.captchas = captchas; this.captchas = captchas;
return this.count(); return this.count();
}, },
@ -24680,21 +24709,7 @@ Main = (function() {
return; return;
} }
return $.asap(docSet, function() { return $.asap(docSet, function() {
var changes, ref3, val, val2; var ref3, val;
if (typeof items.watchedThreads === 'string') {
changes = {};
for (key in items) {
val = items[key];
if (typeof val === 'string') {
try {
val2 = JSON.parse(val);
changes[key] = val2;
} catch (_error) {}
}
}
$.extend(items, changes);
$.set(changes);
}
if ($.cantSet) { if ($.cantSet) {
} else if (items.previousversion == null) { } else if (items.previousversion == null) {

Binary file not shown.

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ {
"version": "1.13.14.7", "version": "1.13.14.8",
"date": "2017-11-15T09:14:52.788Z" "date": "2017-11-16T05:51:41.932Z"
} }