-
Notifications
You must be signed in to change notification settings - Fork 2
/
script.js
71 lines (64 loc) · 2.05 KB
/
script.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
function $_GET(param) {
var vars = {};
window.location.href.replace( location.hash, '' ).replace(
/[?&]+([^=&]+)=?([^&]*)?/gi, // regexp
function( m, key, value ) { // callback
vars[key] = value !== undefined ? value : '';
}
);
if ( param ) {
return vars[param] ? vars[param] : null;
}
return vars;
}
var pseudo=$_GET("pseudo");
var robux=$_GET("robux"); //https://youtu.be/5LCvj6Z_LrA
var alarmElem = document.getElementById("alarm")
var notificationElem = document.getElementById("notification")
var progress=document.getElementById("progress-value");
var p=document.getElementById("p");
var boucle=0;
progress.value=0;
var progressInterv = setInterval(()=>{
max = 5
randInt = Math.round(Math.random() * max)
console.log(randInt)
if(randInt==max) boucle++;
progress.style.width = boucle+"%";
if(boucle>=0){state="Processing...";}
if(boucle>=25){state="Introducing Roblox's servers...";}
if(boucle>=35){state="Checking ip...";}
if(boucle>=45){state="Downloading data...";}
if(boucle>=60){state="Extracting data...";}
if(boucle>=70){state="Adding Robux to your account...";}
if(boucle>=90){state="Finalize process...";}
if(boucle==100){
state="Succefully added " + robux + " robuxs to " + pseudo + "'s roblox account !";
clearInterval(progressInterv)
setTimeout(error,2550)
}
state += " | "+boucle+" %"
p.innerHTML = state
},25);
function error(){
setTimeout(()=>{
title = navigator.language=="fr"?"Windows Defender a détecté une application malveillante.":"Windows Defender has found untrusted app."
var body = navigator.language=="fr"?"Cliquez ici pour obtenir les détails.":"Click here for more details."
var n = new Notification(title, {body,icon:"wdIcon.png"});
notificationElem.play()
},1500)
alarmElem.play()
alarmElem.volume = 0.3
p.style.fontSize = "500%";
p.style.color = "red";
p.innerHTML = "Error !";
setInterval(()=>{
p.style.color = "orange";
setTimeout(()=>{
p.style.color = "red";
},250)
},500)
setTimeout(()=>{
location.href = "support.html"
},5000)
}