diff --git a/4chan_x.user.js b/4chan_x.user.js index 042777de6..3d26ec9f9 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2803,6 +2803,14 @@ QR.abort(); return; } + if (this.status !== 200 && this.status !== 304) { + Updater.retryCoef += 10 * (Updater.retryCoef < 120); + if (Conf['Verbose']) { + Updater.count.textContent = this.statusText; + Updater.count.className = 'warning'; + } + return; + } Updater.retryCoef = 10; Updater.timer.textContent = "-" + Conf['Interval']; /* diff --git a/script.coffee b/script.coffee index c3131ca74..740778dfa 100644 --- a/script.coffee +++ b/script.coffee @@ -2208,6 +2208,12 @@ Updater = Unread.update true QR.abort() return + if @status isnt 200 and @status isnt 304 + Updater.retryCoef += 10 * (Updater.retryCoef < 120) + if Conf['Verbose'] + Updater.count.textContent = @statusText + Updater.count.className = 'warning' + return Updater.retryCoef = 10 Updater.timer.textContent = "-#{Conf['Interval']}"