Starve.io Client_503

try to take over the world!

  1. // ==UserScript==
  2. // @name Starve.io Client_503
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.0.5
  5. // @description try to take over the world!
  6. // @author SoOwYt
  7. // @match *://starve.io/*
  8. // @grant none
  9. // @include http://stackoverflow.com/*
  10. // @require https://code.jquery.com/jquery-3.4.1.min.js
  11.  
  12.  
  13. // ==/UserScript==
  14.  
  15. var version = ("just press ok");
  16.  
  17. alert('' + " " + version);;
  18.  
  19. function pretty_time_string(num) {
  20. return ( num < 10 ? "0" : "" ) + num;
  21. }
  22.  
  23. var start = new Date;
  24.  
  25. setInterval(function() {
  26. var total_seconds = (new Date - start) / 1000;
  27.  
  28. var days = Math.floor(total_seconds / 12960000);
  29. total_seconds = total_seconds % 12960000;
  30.  
  31. var hours = Math.floor(total_seconds / 3600);
  32. total_seconds = total_seconds % 3600;
  33.  
  34. var minutes = Math.floor(total_seconds / 60);
  35. total_seconds = total_seconds % 60;
  36.  
  37. var seconds = Math.floor(total_seconds);
  38. days = pretty_time_string(days);
  39. hours = pretty_time_string(hours);
  40. minutes = pretty_time_string(minutes);
  41. seconds = pretty_time_string(seconds);
  42.  
  43. var currentTimeString = days + ":" + hours + ":" + minutes + ":" + seconds;
  44.  
  45. jQuery('#ratata').text(currentTimeString);
  46. }, 1000);
  47.  
  48. jQuery(document).ready(function(){
  49. document.title = ('' + " " + version);
  50. jQuery("a[href='https://iogames.space']").hide();
  51.  
  52. jQuery('#nickname_input').css({"color": "","font-size":"25","background-color":""});
  53. jQuery('#chat_input').css({"color": "","font-size":"20","background-color":""});
  54. jQuery('#game_canvas').css("image-rendering","initial");
  55. jQuery('#trevda').css("visibility","hidden");
  56. jQuery("link[rel='shortcut icon']").attr("href", "https://cdn.discordapp.com/attachments/611633766833717248/691041054538858570/favicon.png");
  57. jQuery("#loading").css({"background-color": "","color":""});
  58. jQuery("body").on("contextmenu",function(e){
  59. return false;
  60. });
  61.  
  62. jQuery("body").append ('<img draggable="false" id="myNewImage" border="0" src="https://cdn.discordapp.com/attachments/691584212288929854/692082785493712926/mapv2.png">')
  63. jQuery("body").append ('<p id="hrs"></p>')
  64. jQuery('body').append('<p id="ratata">Loading..</p>');
  65. jQuery('body').append('<p id="author"><a target="_blank" href=""></a></p>');
  66.  
  67. jQuery("#author").animate({right: '55px'}).css({
  68. cursor: "url(http://starve.io/img/cursor1.png), pointer",
  69. boxSizing: "border-box",
  70. borderRadius: "8px",
  71. backgroundColor: "#9b2a2d",
  72. boxShadow: "0px 5px #5f2a2d",
  73. paddingLeft: "10px",
  74. paddingRight: "10px",
  75. webkitTouchCallout: "none",
  76. webkitUserSelect: "none",
  77. khtmlUserSelect: "none",
  78. mozUserSelect: "none",
  79. msUserSelect: "none",
  80. userSelect: "none",
  81. position: "absolute",
  82. color:"#FFFFFF",
  83. fontFamily:"Baloo Paaji",
  84. position: "absolute",
  85. right:"55px",
  86. bottom:"30px",
  87.  
  88. });
  89.  
  90. jQuery("#myNewImage").animate({right: '10px'}).css({
  91. cursor: "url(http://starve.io/img/cursor0.png), default",
  92. opacity: "90%",
  93. imageRendering: "initial",
  94. webkitTouchCallout: "none",
  95. webkitUserSelect: "none",
  96. khtmlUserSelect: "none",
  97. mozUserSelect: "none",
  98. msUserSelect: "none",
  99. userSelect: "none",
  100. position: "absolute",
  101. right:"10px",
  102. bottom:"130px",
  103. width: "180px",
  104. height: "180px",
  105. });
  106.  
  107. jQuery("#ratata").animate({right: '43px'}).css({
  108. cursor: "url(http://starve.io/img/cursor0.png), default",
  109. boxSizing: "border-box",
  110. borderRadius: "8px",
  111. backgroundColor: "#9e4e12",
  112. boxShadow: "0px 5px #593109",
  113. paddingLeft: "10px",
  114. paddingRight: "10px",
  115. webkitTouchCallout: "none",
  116. webkitUserSelect: "none",
  117. khtmlUserSelect: "none",
  118. mozUserSelect: "none",
  119. msUserSelect: "none",
  120. userSelect: "none",
  121. position: "absolute",
  122. color:"#FFFFFF",
  123. fontFamily:"Baloo Paaji",
  124. position: "absolute",
  125. right:"45px",
  126. bottom:"80px",
  127.  
  128. });
  129. });