Quote:
Originally Posted by FlyAway
... it was just for the history of the modem turned on at night. Mega.co, I do not know why, sometimes download certain files at low speed and if it happens at night, with your script, the router would continue to be rekindled ...
|
You can use this code to control the time at which the script will run. Insert it after Line 10:
Code:
var h = new Date().getHours();
if (h < 6 || h > 20) return;
In this example the script will run only between 6 AM and 9 PM.