Release 4chan X v1.9.4.1.

This commit is contained in:
ccd0 2014-09-23 15:39:21 -07:00
parent d4c17fe57d
commit 194e869f29
14 changed files with 91 additions and 75 deletions

View File

@ -3,6 +3,13 @@ The attributions below are for work that has been incorporated into the script a
The links to individual versions below are to copies of the script with the update URL removed. If you want automatic updates, install the script from the links on the [main page](https://github.com/ccd0/4chan-x). The links to individual versions below are to copies of the script with the update URL removed. If you want automatic updates, install the script from the links on the [main page](https://github.com/ccd0/4chan-x).
<!-- v1.9.4.x --> <!-- v1.9.4.x -->
### v1.9.4.1
*2014-09-23* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.1/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.1/builds/4chan-X-noupdate.crx "Chromium version")]
**ccd0**
- QR reads "Dead" rather than "404" in a dead (possibly archived) thread.
- Bugfixes.
### v1.9.4.0 ### v1.9.4.0
*2014-09-22* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.0/builds/4chan-X-noupdate.crx "Chromium version")] *2014-09-22* - [[Firefox](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.0/builds/4chan-X-noupdate.user.js "Firefox version")] [[Chromium](https://raw.githubusercontent.com/ccd0/4chan-x/1.9.4.0/builds/4chan-X-noupdate.crx "Chromium version")]

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.9.4.0 * 4chan X - Version 1.9.4.1
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE

Binary file not shown.

View File

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

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X beta // @name 4chan X beta
// @version 1.9.4.0 // @version 1.9.4.1
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.9.4.0 * 4chan X - Version 1.9.4.1
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -378,7 +378,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.9.4.0', VERSION: '1.9.4.1',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
NAME: '4chan X', NAME: '4chan X',
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
@ -6286,6 +6286,9 @@
href: 'javascript:;' href: 'javascript:;'
}); });
$.on(sc, 'click', function() { $.on(sc, 'click', function() {
if (!QR.postingIsEnabled) {
return;
}
if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) { if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) {
QR.open(); QR.open();
QR.nodes.com.focus(); QR.nodes.com.focus();
@ -6510,7 +6513,7 @@
} }
thread = QR.posts[0].thread; thread = QR.posts[0].thread;
if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) {
value = 404; value = 'Dead';
disabled = true; disabled = true;
QR.cooldown.auto = false; QR.cooldown.auto = false;
} }
@ -13331,7 +13334,7 @@
className: 'dialog' className: 'dialog'
}); });
$.extend(dialog, { $.extend(dialog, {
innerHTML: "<nav><div class=sections-list></div><p class='imp-exp-result warning'></p><div class=credits><a class=export>Export</a>&nbsp|&nbsp<a class=import>Import</a>&nbsp|&nbsp<a class=reset>Reset Settings</a>&nbsp|&nbsp<input type=file hidden><a href='https://github.com/ccd0/4chan-x' target=_blank>4chan X</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md' target=_blank>1.9.4.0</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/issues' target=_blank>Issues</a>&nbsp|&nbsp<a href=javascript:; class='close fa fa-times' title=Close></a></div></nav><div class=section-container><section></section></div>" innerHTML: "<nav><div class=sections-list></div><p class='imp-exp-result warning'></p><div class=credits><a class=export>Export</a>&nbsp|&nbsp<a class=import>Import</a>&nbsp|&nbsp<a class=reset>Reset Settings</a>&nbsp|&nbsp<input type=file hidden><a href='https://github.com/ccd0/4chan-x' target=_blank>4chan X</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md' target=_blank>1.9.4.1</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/issues' target=_blank>Issues</a>&nbsp|&nbsp<a href=javascript:; class='close fa fa-times' title=Close></a></div></nav><div class=section-container><section></section></div>"
}); });
$.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.export', Settings.dialog), 'click', Settings["export"]);
$.on($('.import', Settings.dialog), 'click', Settings["import"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]);
@ -14118,6 +14121,22 @@
} else { } else {
$.event('4chanXInitFinished'); $.event('4chanXInitFinished');
} }
$.get('previousversion', null, function(_arg) {
var el, previousversion;
previousversion = _arg.previousversion;
if (previousversion === g.VERSION) {
return;
}
if (previousversion) {
el = $.el('span', {
innerHTML: E(g.NAME) + " has been updated to <a href=\"" + E(g.CHANGELOG) + "\" target=\"_blank\">version " + E(g.VERSION) + "</a>."
});
new Notice('info', el, 15);
} else {
Settings.open();
}
return $.set('previousversion', g.VERSION);
});
if (!Conf['Show Support Message']) { if (!Conf['Show Support Message']) {
return; return;
} }
@ -14169,28 +14188,12 @@
Main.handleErrors(errors); Main.handleErrors(errors);
} }
Main.callbackNodes(Thread, threads); Main.callbackNodes(Thread, threads);
Main.callbackNodesDB(Post, posts, function() { return Main.callbackNodesDB(Post, posts, function() {
return $.event('4chanXInitFinished'); return $.event('4chanXInitFinished');
}); });
} else { } else {
$.event('4chanXInitFinished'); return $.event('4chanXInitFinished');
} }
return $.get('previousversion', null, function(_arg) {
var el, previousversion;
previousversion = _arg.previousversion;
if (previousversion === g.VERSION) {
return;
}
if (previousversion) {
el = $.el('span', {
innerHTML: E(g.NAME) + " has been updated to <a href=\"" + E(g.CHANGELOG) + "\" target=\"_blank\">version " + E(g.VERSION) + "</a>."
});
new Notice('info', el, 15);
} else {
Settings.open();
}
return $.set('previousversion', g.VERSION);
});
}, },
callbackNodes: function(klass, nodes) { callbackNodes: function(klass, nodes) {
var cb, i, node; var cb, i, node;

Binary file not shown.

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.9.4.0 // @version 1.9.4.1
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -23,7 +23,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.9.4.0 * 4chan X - Version 1.9.4.1
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -377,7 +377,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.9.4.0', VERSION: '1.9.4.1',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
NAME: '4chan X', NAME: '4chan X',
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
@ -6285,6 +6285,9 @@
href: 'javascript:;' href: 'javascript:;'
}); });
$.on(sc, 'click', function() { $.on(sc, 'click', function() {
if (!QR.postingIsEnabled) {
return;
}
if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) { if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) {
QR.open(); QR.open();
QR.nodes.com.focus(); QR.nodes.com.focus();
@ -6509,7 +6512,7 @@
} }
thread = QR.posts[0].thread; thread = QR.posts[0].thread;
if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) {
value = 404; value = 'Dead';
disabled = true; disabled = true;
QR.cooldown.auto = false; QR.cooldown.auto = false;
} }
@ -13330,7 +13333,7 @@
className: 'dialog' className: 'dialog'
}); });
$.extend(dialog, { $.extend(dialog, {
innerHTML: "<nav><div class=sections-list></div><p class='imp-exp-result warning'></p><div class=credits><a class=export>Export</a>&nbsp|&nbsp<a class=import>Import</a>&nbsp|&nbsp<a class=reset>Reset Settings</a>&nbsp|&nbsp<input type=file hidden><a href='https://github.com/ccd0/4chan-x' target=_blank>4chan X</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md' target=_blank>1.9.4.0</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/issues' target=_blank>Issues</a>&nbsp|&nbsp<a href=javascript:; class='close fa fa-times' title=Close></a></div></nav><div class=section-container><section></section></div>" innerHTML: "<nav><div class=sections-list></div><p class='imp-exp-result warning'></p><div class=credits><a class=export>Export</a>&nbsp|&nbsp<a class=import>Import</a>&nbsp|&nbsp<a class=reset>Reset Settings</a>&nbsp|&nbsp<input type=file hidden><a href='https://github.com/ccd0/4chan-x' target=_blank>4chan X</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md' target=_blank>1.9.4.1</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/issues' target=_blank>Issues</a>&nbsp|&nbsp<a href=javascript:; class='close fa fa-times' title=Close></a></div></nav><div class=section-container><section></section></div>"
}); });
$.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.export', Settings.dialog), 'click', Settings["export"]);
$.on($('.import', Settings.dialog), 'click', Settings["import"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]);
@ -14117,6 +14120,22 @@
} else { } else {
$.event('4chanXInitFinished'); $.event('4chanXInitFinished');
} }
$.get('previousversion', null, function(_arg) {
var el, previousversion;
previousversion = _arg.previousversion;
if (previousversion === g.VERSION) {
return;
}
if (previousversion) {
el = $.el('span', {
innerHTML: E(g.NAME) + " has been updated to <a href=\"" + E(g.CHANGELOG) + "\" target=\"_blank\">version " + E(g.VERSION) + "</a>."
});
new Notice('info', el, 15);
} else {
Settings.open();
}
return $.set('previousversion', g.VERSION);
});
if (!Conf['Show Support Message']) { if (!Conf['Show Support Message']) {
return; return;
} }
@ -14168,28 +14187,12 @@
Main.handleErrors(errors); Main.handleErrors(errors);
} }
Main.callbackNodes(Thread, threads); Main.callbackNodes(Thread, threads);
Main.callbackNodesDB(Post, posts, function() { return Main.callbackNodesDB(Post, posts, function() {
return $.event('4chanXInitFinished'); return $.event('4chanXInitFinished');
}); });
} else { } else {
$.event('4chanXInitFinished'); return $.event('4chanXInitFinished');
} }
return $.get('previousversion', null, function(_arg) {
var el, previousversion;
previousversion = _arg.previousversion;
if (previousversion === g.VERSION) {
return;
}
if (previousversion) {
el = $.el('span', {
innerHTML: E(g.NAME) + " has been updated to <a href=\"" + E(g.CHANGELOG) + "\" target=\"_blank\">version " + E(g.VERSION) + "</a>."
});
new Notice('info', el, 15);
} else {
Settings.open();
}
return $.set('previousversion', g.VERSION);
});
}, },
callbackNodes: function(klass, nodes) { callbackNodes: function(klass, nodes) {
var cb, i, node; var cb, i, node;

Binary file not shown.

View File

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

View File

@ -1,7 +1,7 @@
// Generated by CoffeeScript // Generated by CoffeeScript
// ==UserScript== // ==UserScript==
// @name 4chan X // @name 4chan X
// @version 1.9.4.0 // @version 1.9.4.1
// @minGMVer 1.14 // @minGMVer 1.14
// @minFFVer 26 // @minFFVer 26
// @namespace 4chan-X // @namespace 4chan-X
@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.9.4.0 * 4chan X - Version 1.9.4.1
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -378,7 +378,7 @@
doc = d.documentElement; doc = d.documentElement;
g = { g = {
VERSION: '1.9.4.0', VERSION: '1.9.4.1',
NAMESPACE: '4chan X.', NAMESPACE: '4chan X.',
NAME: '4chan X', NAME: '4chan X',
FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions',
@ -6286,6 +6286,9 @@
href: 'javascript:;' href: 'javascript:;'
}); });
$.on(sc, 'click', function() { $.on(sc, 'click', function() {
if (!QR.postingIsEnabled) {
return;
}
if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) { if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) {
QR.open(); QR.open();
QR.nodes.com.focus(); QR.nodes.com.focus();
@ -6510,7 +6513,7 @@
} }
thread = QR.posts[0].thread; thread = QR.posts[0].thread;
if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) {
value = 404; value = 'Dead';
disabled = true; disabled = true;
QR.cooldown.auto = false; QR.cooldown.auto = false;
} }
@ -13331,7 +13334,7 @@
className: 'dialog' className: 'dialog'
}); });
$.extend(dialog, { $.extend(dialog, {
innerHTML: "<nav><div class=sections-list></div><p class='imp-exp-result warning'></p><div class=credits><a class=export>Export</a>&nbsp|&nbsp<a class=import>Import</a>&nbsp|&nbsp<a class=reset>Reset Settings</a>&nbsp|&nbsp<input type=file hidden><a href='https://github.com/ccd0/4chan-x' target=_blank>4chan X</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md' target=_blank>1.9.4.0</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/issues' target=_blank>Issues</a>&nbsp|&nbsp<a href=javascript:; class='close fa fa-times' title=Close></a></div></nav><div class=section-container><section></section></div>" innerHTML: "<nav><div class=sections-list></div><p class='imp-exp-result warning'></p><div class=credits><a class=export>Export</a>&nbsp|&nbsp<a class=import>Import</a>&nbsp|&nbsp<a class=reset>Reset Settings</a>&nbsp|&nbsp<input type=file hidden><a href='https://github.com/ccd0/4chan-x' target=_blank>4chan X</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/blob/master/CHANGELOG.md' target=_blank>1.9.4.1</a>&nbsp|&nbsp<a href='https://github.com/ccd0/4chan-x/issues' target=_blank>Issues</a>&nbsp|&nbsp<a href=javascript:; class='close fa fa-times' title=Close></a></div></nav><div class=section-container><section></section></div>"
}); });
$.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.export', Settings.dialog), 'click', Settings["export"]);
$.on($('.import', Settings.dialog), 'click', Settings["import"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]);
@ -14118,6 +14121,22 @@
} else { } else {
$.event('4chanXInitFinished'); $.event('4chanXInitFinished');
} }
$.get('previousversion', null, function(_arg) {
var el, previousversion;
previousversion = _arg.previousversion;
if (previousversion === g.VERSION) {
return;
}
if (previousversion) {
el = $.el('span', {
innerHTML: E(g.NAME) + " has been updated to <a href=\"" + E(g.CHANGELOG) + "\" target=\"_blank\">version " + E(g.VERSION) + "</a>."
});
new Notice('info', el, 15);
} else {
Settings.open();
}
return $.set('previousversion', g.VERSION);
});
if (!Conf['Show Support Message']) { if (!Conf['Show Support Message']) {
return; return;
} }
@ -14169,28 +14188,12 @@
Main.handleErrors(errors); Main.handleErrors(errors);
} }
Main.callbackNodes(Thread, threads); Main.callbackNodes(Thread, threads);
Main.callbackNodesDB(Post, posts, function() { return Main.callbackNodesDB(Post, posts, function() {
return $.event('4chanXInitFinished'); return $.event('4chanXInitFinished');
}); });
} else { } else {
$.event('4chanXInitFinished'); return $.event('4chanXInitFinished');
} }
return $.get('previousversion', null, function(_arg) {
var el, previousversion;
previousversion = _arg.previousversion;
if (previousversion === g.VERSION) {
return;
}
if (previousversion) {
el = $.el('span', {
innerHTML: E(g.NAME) + " has been updated to <a href=\"" + E(g.CHANGELOG) + "\" target=\"_blank\">version " + E(g.VERSION) + "</a>."
});
new Notice('info', el, 15);
} else {
Settings.open();
}
return $.set('previousversion', g.VERSION);
});
}, },
callbackNodes: function(klass, nodes) { callbackNodes: function(klass, nodes) {
var cb, i, node; var cb, i, node;

Binary file not shown.

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://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.9.4.0' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X-beta.crx' version='1.9.4.1' />
</app> </app>
</gupdate> </gupdate>

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://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.9.4.0' /> <updatecheck codebase='https://ccd0.github.io/4chan-x/builds/4chan-X.crx' version='1.9.4.1' />
</app> </app>
</gupdate> </gupdate>

View File

@ -3,7 +3,7 @@
"description": "Cross-browser userscript for maximum lurking on 4chan.", "description": "Cross-browser userscript for maximum lurking on 4chan.",
"meta": { "meta": {
"name": "4chan X", "name": "4chan X",
"version": "1.9.4.0", "version": "1.9.4.1",
"repo": "https://github.com/ccd0/4chan-x/", "repo": "https://github.com/ccd0/4chan-x/",
"page": "https://github.com/ccd0/4chan-x", "page": "https://github.com/ccd0/4chan-x",
"downloads": "https://ccd0.github.io/4chan-x/builds/", "downloads": "https://ccd0.github.io/4chan-x/builds/",