refresh /orgy automatically

master
Aevann 2023-09-14 02:01:08 +03:00
parent 9b75debb2d
commit 9a877378c9
1 changed files with 9 additions and 0 deletions

View File

@ -38,3 +38,12 @@ orgy_file.addEventListener("timeupdate", function(){
}, 300000);
}
});
const now = new Date();
const now_utc = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds());
let millis = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 0, 0, 10) - now;
if (millis < 0)
millis += 86400000;
setTimeout(() => location.reload(), millis);