diff --git a/4chan_x.user.js b/4chan_x.user.js index 30aa5470a..48af764b7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2795,7 +2795,7 @@ }; }, update: function() { - var count, doc, id, lastPost, nodes, reply, scroll, _i, _len, _ref; + var count, doc, id, lastPost, nodes, reply, scroll, _i, _len, _ref, _ref1; if (this.status === 404) { Updater.timer.textContent = ''; Updater.count.textContent = 404; @@ -2811,7 +2811,7 @@ QR.abort(); return; } - if (this.status !== 200 && this.status !== 304) { + if ((_ref = this.status) !== 0 && _ref !== 200 && _ref !== 304) { Updater.retryCoef += 10 * (Updater.retryCoef < 120); if (Conf['Verbose']) { Updater.count.textContent = this.statusText; @@ -2841,9 +2841,9 @@ lastPost = Updater.thread.lastElementChild; id = lastPost.id.slice(2); nodes = []; - _ref = $$('.replyContainer', doc).reverse(); - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - reply = _ref[_i]; + _ref1 = $$('.replyContainer', doc).reverse(); + for (_i = 0, _len = _ref1.length; _i < _len; _i++) { + reply = _ref1[_i]; if (reply.id.slice(2) <= id) { break; } diff --git a/script.coffee b/script.coffee index 6d29c21cc..f112f33c1 100644 --- a/script.coffee +++ b/script.coffee @@ -2217,7 +2217,8 @@ Updater = Unread.update true QR.abort() return - if @status isnt 200 and @status isnt 304 + unless @status in [0, 200, 304] + # XXX 304 -> 0 in Opera Updater.retryCoef += 10 * (Updater.retryCoef < 120) if Conf['Verbose'] Updater.count.textContent = @statusText