From 7d99d8c0e95cf947bf57b7edf2f54108e3c58303 Mon Sep 17 00:00:00 2001 From: ROMB Date: Mon, 22 Jun 2015 14:55:29 +1000 Subject: [PATCH] Add configurable option for CheckLoadDelay --- autoplay.noUpdate.user.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/autoplay.noUpdate.user.js b/autoplay.noUpdate.user.js index ce44cf8..c7919d9 100644 --- a/autoplay.noUpdate.user.js +++ b/autoplay.noUpdate.user.js @@ -49,7 +49,7 @@ var enableChen = getPreferenceBoolean("enableChen", false); var autoRefreshMinutes = 30; var autoRefreshMinutesRandomDelay = 10; -var autoRefreshSecondsCheckLoadedDelay = 30; +var autoRefreshSecondsCheckLoadedDelay = getPreference("autoRefreshSecondsCheckLoadedDelay",30); var predictTicks = 0; var predictJumps = 0; @@ -362,6 +362,8 @@ function firstRun() { options2.appendChild(makeCheckBox("enableFingering", "Enable targeting pointer", enableFingering, toggleFingering, false)); options2.appendChild(makeCheckBox("enableTrollTrack", "Enable tracking trolls", enableTrollTrack, toggleTrackTroll, false)); options2.appendChild(makeNumber("setLogLevel", "Change the log level (you shouldn't need to touch this)", logLevel, 0, 5, updateLogLevel)); + options2.appendChild(makeNumber("autoRefreshSecondsCheckLoadedDelay", "Change delay of full load test (in seconds)", + autoRefreshSecondsCheckLoadedDelay,5,300,updateCheckLoadedDelay)); info_box.appendChild(options2); @@ -1412,6 +1414,13 @@ function updateLogLevel(event) { } } +function updateCheckLoadedDelay(event) { + if(event !== undefined) { + autoRefreshSecondsCheckLoadedDelay = event.target.value; + setPreference("autoRefreshSecondsCheckLoadedDelay", autoRefreshSecondsCheckLoadedDelay); + } +} + function setPreference(key, value) { try { if(localStorage !== 'undefined') {