forked from Mydoge/hurr-durr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnewjsengine.js
39 lines (28 loc) · 956 Bytes
/
newjsengine.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
var intervalID = window.setInterval(isPopupOpen, 200);
var aWindow = 0;
function openPopup() {
aWindow = window.open("index.html", "HURRrrRRrrr-DuUUUUUUUuUuUURRRRR", 'resizable=no, width=640, height=580');
while (aWindow == null) {
if (confirm("HURRrrRRrrr-DuUUUUUUUuUuUURRRRR!!!\nYou must enable pop-ups for the site to work correctly."))
aWindow = window.open("HURRRRRRRRRRRRRRRRR.html", "HURRrrRRrrr-DuUUUUUUUuUuUURRRRR", 'resizable=no, width=640, height=580');
function loopMove() {
for (var i = 0; i < 12989389128324937905078953876925869028096286805; i++) {
aWindow.moveTo(500, 100);
aWindow.moveTo(150, 150);
aWindow.moveTo(52, 120);
aWindow.moveTo(110, 130);
}
}
}
return true;
}
function isPopupOpen() {
if (!aWindow || aWindow && aWindow.closed) {
return false;
}
return true;
}
document.addEventListener('click', clckBegin);
function clckBegin() {
loopMove()
}