From 720606d2e22a4529df9e7c9838603aa37fe97bfb Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Tue, 3 Sep 2013 21:41:00 -0700 Subject: [PATCH] Trick thread updater into allowing 1 second PROTIP: minimum seconds are now techically two, but it'll still display one. Anyone pissed about this needs to get a life. --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Monitoring/ThreadUpdater.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index cec78313a..44fb48b31 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -8056,7 +8056,7 @@ j = j < 7 ? j : 7; } ThreadUpdater.seconds = Conf['Optional Increase'] ? (cur = [0, 5, 10, 15, 20, 30, 60, 90, 120, 240, 300][j] > i) ? cur : i : i; - ThreadUpdater.set('timer', ThreadUpdater.seconds); + ThreadUpdater.set('timer', ThreadUpdater.seconds++); clearTimeout(ThreadUpdater.timeoutID); return ThreadUpdater.timeout(); }, diff --git a/builds/crx/script.js b/builds/crx/script.js index 433ea6c6a..bd8c52a2e 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -8043,7 +8043,7 @@ j = j < 7 ? j : 7; } ThreadUpdater.seconds = Conf['Optional Increase'] ? (cur = [0, 5, 10, 15, 20, 30, 60, 90, 120, 240, 300][j] > i) ? cur : i : i; - ThreadUpdater.set('timer', ThreadUpdater.seconds); + ThreadUpdater.set('timer', ThreadUpdater.seconds++); clearTimeout(ThreadUpdater.timeoutID); return ThreadUpdater.timeout(); }, diff --git a/src/Monitoring/ThreadUpdater.coffee b/src/Monitoring/ThreadUpdater.coffee index 4cc268029..32c5c668b 100755 --- a/src/Monitoring/ThreadUpdater.coffee +++ b/src/Monitoring/ThreadUpdater.coffee @@ -175,7 +175,7 @@ ThreadUpdater = if cur = [0, 5, 10, 15, 20, 30, 60, 90, 120, 240, 300][j] > i then cur else i else i - ThreadUpdater.set 'timer', ThreadUpdater.seconds + ThreadUpdater.set 'timer', ThreadUpdater.seconds++ clearTimeout ThreadUpdater.timeoutID ThreadUpdater.timeout()