From 94ad6a590ecad1527ba94a0c8f95e49f901c140d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 7 Dec 2011 23:34:52 +0100 Subject: [PATCH] Fool the cache for loloprah, fix thread updater, close #30 --- 4chan_x.user.js | 2 +- changelog | 1 + script.coffee | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6b61ab04f..67356c7fc 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2080,7 +2080,7 @@ var cb, url, _ref; updater.timer.textContent = 0; if ((_ref = updater.request) != null) _ref.abort(); - url = location.pathname; + url = engine !== 'presto' ? location.pathname : location.pathname + '?' + Date.now(); cb = updater.cb.update; return updater.request = $.ajax(url, cb); } diff --git a/changelog b/changelog index 216864283..9bf1fbb53 100644 --- a/changelog +++ b/changelog @@ -4,6 +4,7 @@ master quotes are now inserted at the caret position in the QR quotes also replace the text selection in the QR open QR focused when using the `Open QR without post number inserted` keybind + fix thread updater for Opera - aeosynth update the captcha caching expiration date to 30mins diff --git a/script.coffee b/script.coffee index 1b4da00f2..3175b68b9 100644 --- a/script.coffee +++ b/script.coffee @@ -1664,7 +1664,8 @@ updater = update: -> updater.timer.textContent = 0 updater.request?.abort() - url = location.pathname + #Opera needs to fool its cache + url = if engine isnt 'presto' then location.pathname else location.pathname + '?' + Date.now() cb = updater.cb.update updater.request = $.ajax url, cb