diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e3da1fb8..98fe50a3e 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). +### 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 *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")] diff --git a/LICENSE b/LICENSE index 64d5f29d9..facb075f4 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.9.4.0 +* 4chan X - Version 1.9.4.1 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X-beta.crx b/builds/4chan-X-beta.crx index fd8ba9478..de60b6361 100644 Binary files a/builds/4chan-X-beta.crx and b/builds/4chan-X-beta.crx differ diff --git a/builds/4chan-X-beta.meta.js b/builds/4chan-X-beta.meta.js index f6dd078b9..82fdee3a1 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X beta -// @version 1.9.4.0 +// @version 1.9.4.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X-beta.user.js b/builds/4chan-X-beta.user.js index e39985196..1239d074c 100644 --- a/builds/4chan-X-beta.user.js +++ b/builds/4chan-X-beta.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X beta -// @version 1.9.4.0 +// @version 1.9.4.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.9.4.0 +* 4chan X - Version 1.9.4.1 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -378,7 +378,7 @@ doc = d.documentElement; g = { - VERSION: '1.9.4.0', + VERSION: '1.9.4.1', NAMESPACE: '4chan X.', NAME: '4chan X', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', @@ -6286,6 +6286,9 @@ href: 'javascript:;' }); $.on(sc, 'click', function() { + if (!QR.postingIsEnabled) { + return; + } if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) { QR.open(); QR.nodes.com.focus(); @@ -6510,7 +6513,7 @@ } thread = QR.posts[0].thread; if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { - value = 404; + value = 'Dead'; disabled = true; QR.cooldown.auto = false; } @@ -13331,7 +13334,7 @@ className: 'dialog' }); $.extend(dialog, { - innerHTML: "
" + innerHTML: "
" }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -14118,6 +14121,22 @@ } else { $.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 version " + E(g.VERSION) + "." + }); + new Notice('info', el, 15); + } else { + Settings.open(); + } + return $.set('previousversion', g.VERSION); + }); if (!Conf['Show Support Message']) { return; } @@ -14169,28 +14188,12 @@ Main.handleErrors(errors); } Main.callbackNodes(Thread, threads); - Main.callbackNodesDB(Post, posts, function() { + return Main.callbackNodesDB(Post, posts, function() { return $.event('4chanXInitFinished'); }); } 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 version " + E(g.VERSION) + "." - }); - new Notice('info', el, 15); - } else { - Settings.open(); - } - return $.set('previousversion', g.VERSION); - }); }, callbackNodes: function(klass, nodes) { var cb, i, node; diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index 7079eada4..ab4e14996 100644 Binary files a/builds/4chan-X-noupdate.crx and b/builds/4chan-X-noupdate.crx differ diff --git a/builds/4chan-X-noupdate.user.js b/builds/4chan-X-noupdate.user.js index 8193779d2..a4fd61068 100644 --- a/builds/4chan-X-noupdate.user.js +++ b/builds/4chan-X-noupdate.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.9.4.0 +// @version 1.9.4.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -23,7 +23,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.9.4.0 +* 4chan X - Version 1.9.4.1 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -377,7 +377,7 @@ doc = d.documentElement; g = { - VERSION: '1.9.4.0', + VERSION: '1.9.4.1', NAMESPACE: '4chan X.', NAME: '4chan X', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', @@ -6285,6 +6285,9 @@ href: 'javascript:;' }); $.on(sc, 'click', function() { + if (!QR.postingIsEnabled) { + return; + } if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) { QR.open(); QR.nodes.com.focus(); @@ -6509,7 +6512,7 @@ } thread = QR.posts[0].thread; if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { - value = 404; + value = 'Dead'; disabled = true; QR.cooldown.auto = false; } @@ -13330,7 +13333,7 @@ className: 'dialog' }); $.extend(dialog, { - innerHTML: "
" + innerHTML: "
" }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -14117,6 +14120,22 @@ } else { $.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 version " + E(g.VERSION) + "." + }); + new Notice('info', el, 15); + } else { + Settings.open(); + } + return $.set('previousversion', g.VERSION); + }); if (!Conf['Show Support Message']) { return; } @@ -14168,28 +14187,12 @@ Main.handleErrors(errors); } Main.callbackNodes(Thread, threads); - Main.callbackNodesDB(Post, posts, function() { + return Main.callbackNodesDB(Post, posts, function() { return $.event('4chanXInitFinished'); }); } 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 version " + E(g.VERSION) + "." - }); - new Notice('info', el, 15); - } else { - Settings.open(); - } - return $.set('previousversion', g.VERSION); - }); }, callbackNodes: function(klass, nodes) { var cb, i, node; diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 5a8c9b968..4993bb63d 100644 Binary files a/builds/4chan-X.crx and b/builds/4chan-X.crx differ diff --git a/builds/4chan-X.meta.js b/builds/4chan-X.meta.js index 959178903..f120a04ca 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.9.4.0 +// @version 1.9.4.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 1c5b77359..023138ae9 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1,7 +1,7 @@ // Generated by CoffeeScript // ==UserScript== // @name 4chan X -// @version 1.9.4.0 +// @version 1.9.4.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.9.4.0 +* 4chan X - Version 1.9.4.1 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -378,7 +378,7 @@ doc = d.documentElement; g = { - VERSION: '1.9.4.0', + VERSION: '1.9.4.1', NAMESPACE: '4chan X.', NAME: '4chan X', FAQ: 'https://github.com/ccd0/4chan-x/wiki/Frequently-Asked-Questions', @@ -6286,6 +6286,9 @@ href: 'javascript:;' }); $.on(sc, 'click', function() { + if (!QR.postingIsEnabled) { + return; + } if (Conf['Persistent QR'] || !QR.nodes || QR.nodes.el.hidden) { QR.open(); QR.nodes.com.focus(); @@ -6510,7 +6513,7 @@ } thread = QR.posts[0].thread; if (thread !== 'new' && g.threads["" + g.BOARD + "." + thread].isDead) { - value = 404; + value = 'Dead'; disabled = true; QR.cooldown.auto = false; } @@ -13331,7 +13334,7 @@ className: 'dialog' }); $.extend(dialog, { - innerHTML: "
" + innerHTML: "
" }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -14118,6 +14121,22 @@ } else { $.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 version " + E(g.VERSION) + "." + }); + new Notice('info', el, 15); + } else { + Settings.open(); + } + return $.set('previousversion', g.VERSION); + }); if (!Conf['Show Support Message']) { return; } @@ -14169,28 +14188,12 @@ Main.handleErrors(errors); } Main.callbackNodes(Thread, threads); - Main.callbackNodesDB(Post, posts, function() { + return Main.callbackNodesDB(Post, posts, function() { return $.event('4chanXInitFinished'); }); } 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 version " + E(g.VERSION) + "." - }); - new Notice('info', el, 15); - } else { - Settings.open(); - } - return $.set('previousversion', g.VERSION); - }); }, callbackNodes: function(klass, nodes) { var cb, i, node; diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index ef5fdc9d1..48c6ab5a0 100644 Binary files a/builds/4chan-X.zip and b/builds/4chan-X.zip differ diff --git a/builds/updates-beta.xml b/builds/updates-beta.xml index c0c813e89..77410456a 100644 --- a/builds/updates-beta.xml +++ b/builds/updates-beta.xml @@ -1,7 +1,7 @@ - + diff --git a/builds/updates.xml b/builds/updates.xml index 32e162afd..42d7072a5 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index 1bbd03dfd..e10d89b61 100755 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X", - "version": "1.9.4.0", + "version": "1.9.4.1", "repo": "https://github.com/ccd0/4chan-x/", "page": "https://github.com/ccd0/4chan-x", "downloads": "https://ccd0.github.io/4chan-x/builds/",