diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c8a7a713..ec34cbb4a 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v1.8.7.1 +*2014-07-23* + **ccd0** - Fix unread count updating bug in Firefox as in v1.8.6.2. diff --git a/LICENSE b/LICENSE index d4f4b0312..6a3a1aa90 100755 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.8.7 - 2014-07-20 +* 4chan X - Version 1.8.7.1 - 2014-07-23 * * 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 b54655869..36fd1a362 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 be24fdeaa..9a60a9fae 100644 --- a/builds/4chan-X-beta.meta.js +++ b/builds/4chan-X-beta.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.8.7 +// @version 1.8.7.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 db16047dd..bd005736e 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 -// @version 1.8.7 +// @version 1.8.7.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.8.7 - 2014-07-20 +* 4chan X - Version 1.8.7.1 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -377,7 +377,7 @@ doc = d.documentElement; g = { - VERSION: '1.8.7', + VERSION: '1.8.7.1', NAMESPACE: '4chan X.', boards: {} }; @@ -10745,12 +10745,20 @@ }; }, onUpdate: function(e) { + var fullID; if (e.detail[404]) { return Unread.update(); } else if (!QuoteThreading.enabled) { - return Unread.addPosts(e.detail.newPosts.map(function(fullID) { - return g.posts[fullID]; - })); + return Unread.addPosts((function() { + var _i, _len, _ref, _results; + _ref = e.detail.newPosts; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + fullID = _ref[_i]; + _results.push(g.posts[fullID]); + } + return _results; + })()); } else { Unread.read(); return Unread.update(); @@ -12536,7 +12544,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13375,7 +13383,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.8.7.' + innerHTML: '4chan X has been updated to version 1.8.7.1.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X-noupdate.crx b/builds/4chan-X-noupdate.crx index bf444dbe1..f4f87eec0 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 a43860cd9..30827fdd5 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.8.7 +// @version 1.8.7.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -23,7 +23,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.8.7 - 2014-07-20 +* 4chan X - Version 1.8.7.1 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -376,7 +376,7 @@ doc = d.documentElement; g = { - VERSION: '1.8.7', + VERSION: '1.8.7.1', NAMESPACE: '4chan X.', boards: {} }; @@ -10744,12 +10744,20 @@ }; }, onUpdate: function(e) { + var fullID; if (e.detail[404]) { return Unread.update(); } else if (!QuoteThreading.enabled) { - return Unread.addPosts(e.detail.newPosts.map(function(fullID) { - return g.posts[fullID]; - })); + return Unread.addPosts((function() { + var _i, _len, _ref, _results; + _ref = e.detail.newPosts; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + fullID = _ref[_i]; + _results.push(g.posts[fullID]); + } + return _results; + })()); } else { Unread.read(); return Unread.update(); @@ -12535,7 +12543,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13374,7 +13382,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.8.7.' + innerHTML: '4chan X has been updated to version 1.8.7.1.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X.crx b/builds/4chan-X.crx index 3fd8473c9..35704ecc1 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 01c1df7bc..d2735d6be 100644 --- a/builds/4chan-X.meta.js +++ b/builds/4chan-X.meta.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan X -// @version 1.8.7 +// @version 1.8.7.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 6caadb01a..fecd99d1a 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.8.7 +// @version 1.8.7.1 // @minGMVer 1.14 // @minFFVer 26 // @namespace 4chan-X @@ -24,7 +24,7 @@ // ==/UserScript== /* -* 4chan X - Version 1.8.7 - 2014-07-20 +* 4chan X - Version 1.8.7.1 - 2014-07-23 * * Licensed under the MIT license. * https://github.com/ccd0/4chan-x/blob/master/LICENSE @@ -377,7 +377,7 @@ doc = d.documentElement; g = { - VERSION: '1.8.7', + VERSION: '1.8.7.1', NAMESPACE: '4chan X.', boards: {} }; @@ -10745,12 +10745,20 @@ }; }, onUpdate: function(e) { + var fullID; if (e.detail[404]) { return Unread.update(); } else if (!QuoteThreading.enabled) { - return Unread.addPosts(e.detail.newPosts.map(function(fullID) { - return g.posts[fullID]; - })); + return Unread.addPosts((function() { + var _i, _len, _ref, _results; + _ref = e.detail.newPosts; + _results = []; + for (_i = 0, _len = _ref.length; _i < _len; _i++) { + fullID = _ref[_i]; + _results.push(g.posts[fullID]); + } + return _results; + })()); } else { Unread.read(); return Unread.update(); @@ -12536,7 +12544,7 @@ Settings.dialog = dialog = $.el('div', { id: 'fourchanx-settings', className: 'dialog', - innerHTML: '
' + innerHTML: '
' }); $.on($('.export', Settings.dialog), 'click', Settings["export"]); $.on($('.import', Settings.dialog), 'click', Settings["import"]); @@ -13375,7 +13383,7 @@ } if (previousversion) { el = $.el('span', { - innerHTML: '4chan X has been updated to version 1.8.7.' + innerHTML: '4chan X has been updated to version 1.8.7.1.' }); new Notice('info', el, 15); } else { diff --git a/builds/4chan-X.zip b/builds/4chan-X.zip index 5d1f743d6..dcb40a445 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 89af89499..f8b46d5a3 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 6f44d902c..ad9a928a2 100644 --- a/builds/updates.xml +++ b/builds/updates.xml @@ -1,7 +1,7 @@ - + diff --git a/package.json b/package.json index b637c0196..02ac7abe4 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "4chan-X", - "version": "1.8.7", + "version": "1.8.7.1", "description": "Cross-browser userscript for maximum lurking on 4chan.", "meta": { "name": "4chan X",