Author Emel yanov Konstantin Date 17 12 14 Comments Script to Vkontact

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
/*
* Author: Emel'yanov Konstantin
* Date: 17.12.14
* Comments: Script to "Vkontact"
*/
var start_hour = 1; // Next hour
var last_hour = 5; // Last activity time
setInterval(
function() {
var today = new Date();
if(today.getHours() == start_hour && start_hour <= last_hour) {
start_hour++;
window.open('http://vk.com','_blank');
}
}, 1000*60*60 // Every 1 hour
)