Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pausecomp(millis)
- {
- var date = new Date();
- var curDate = null;
- do { curDate = new Date(); }
- while(curDate-date < millis);
- }
- var location1 = window.location.href;
- if (location1 != "http://localhost/ACTA/poze.html" && location1 !="http://localhost/ACTA/poze1.html")
- {
- console.log(location1);
- if (location1=="https://codeforces.com/")
- {
- window.location.replace ("http://localhost/ACTA/poze.html");
- pausecomp(10000);
- window.location.replace("http://localhost/ACTA/poze1.html");
- window.location.replace("https://codeforces.com/problemset");
- }
- else
- {
- window.stop();
- }
- }
- else
- window.stop();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement