From 71b89622d9faef814537eb02541a11d72b1e1553 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 8 Sep 2012 01:06:51 +0200 Subject: [PATCH] Revert network tweak. It breaks updating if you reopen a page that doesn't have the latest posts cached. --- 4chan_x.user.js | 10 ---------- script.coffee | 5 ----- 2 files changed, 15 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 94053c805..20763776e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2850,16 +2850,6 @@ this.thread = $.id("t" + g.THREAD_ID); this.unsuccessfulFetchCount = 0; this.lastModified = '0'; - $.ajax("//api.4chan.org/" + g.BOARD + "/res/" + g.THREAD_ID + ".json", { - onload: function() { - if (this.status !== 200) { - return; - } - return Updater.lastModified = this.getResponseHeader('Last-Modified'); - } - }, { - type: 'head' - }); _ref = $$('input', dialog); for (_i = 0, _len = _ref.length; _i < _len; _i++) { input = _ref[_i]; diff --git a/script.coffee b/script.coffee index 8722e7a8e..53737cd06 100644 --- a/script.coffee +++ b/script.coffee @@ -2279,11 +2279,6 @@ Updater = @unsuccessfulFetchCount = 0 @lastModified = '0' - $.ajax "//api.4chan.org/#{g.BOARD}/res/#{g.THREAD_ID}.json", { - onload: -> - return if @status isnt 200 - Updater.lastModified = @getResponseHeader 'Last-Modified' - }, type: 'head' for input in $$ 'input', dialog if input.type is 'checkbox'