Oib: Rewritten

kmccord1's latest in oib technology!!!

当前为 2020-09-12 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Oib: Rewritten
  3. // @namespace http://tampermonkey.net/
  4. // @version 69.420
  5. // @description kmccord1's latest in oib technology!!!
  6. // @author kmccord1.
  7. // @match http://oib.io
  8. // @run-at document-start
  9. // @grant none
  10. // ==/UserScript==
  11. // Feel free to make improvments or add your own features to the script. Thats why nothing is obfuscated! :)
  12. (function() {
  13. // Config - Edit below here
  14. // Note: all keys MUST be put in the config in lowercase or else it wont work!
  15. window.config = {
  16. MAX_QUEUE_SIZE: 1, // How many actions the queue can hold before it stops accepting new ones. An action is processed every 160 ms. (Only affects manual inputs)
  17. HEALTH_ALERT_THRESHOLD: 50, // If your health drops below this percentage your oibs and queen will turn orange.
  18. AUTO_HEAL_THRESHOLD: 90, // If your health drops below this percentage you will activate healing if you have healing set to automatic.
  19. RAILGUN_INTERVAL: 5, // How often to pull your oibs towards your queen when using railgun. (If you set this too low you may eat your oibs)
  20. OIB_SIZE_ANIMATION: 0.2, // How many seconds your oibs take to shrink and grow.
  21. OIB_VULN_ALPHA: 50, // How visible oibs are in ghost mode in percentage. (Also affects people with spawn protection)
  22. NUKE_LEVEL: 6, // The default level of oibs the nuke maker will make.
  23. keys: {
  24. GHOST_MODE: "6", // The key used for "Ghost mode". (Lets you see inside other people/oibs)
  25. SHOW_LEVELS: "n", // The key used to show all oib levels.
  26. AUTO_RESPAWN: "l", // When you die the game will instantly respawn you.
  27. REAL_SIZE: "u", // Shows the true sizes of oibs beyond level 36 (Not 100% Accurate)
  28. OIB_UP: "pageup", // Incrases the size multiplier on all oibs. (VISUAL ONLY)
  29. OIB_DOWN: "pagedown", // Decreases the size multiplier on all oibs. (VISUAL ONLY)
  30. OIB_RESET: "end", // Resets the oib size multiplier to 1. (VISUAL ONLY)
  31. RAILGUN: "e", // Sends your oibs towards your queen and makes you move toward your cursor. (Dont spam this or youll eat all your oibs)
  32. AUTOSPLIT: "c", // Splits and moves your oibs as fast as possible.
  33. HEAL_MODE: "m", // Switch between automatic and manual healing.
  34. HEAL: "f", // Used to activate manual healing. (Not a toggle)
  35. NUKE: "x", // Key used for making nukes. (Groups of certain level oibs. Has heal nuke built-in)
  36. NUKE_UP: "]", // Increase nuke level
  37. NUKE_DOWN: "[" // Decrease nuke level
  38. }
  39. };
  40.  
  41. // Remember: when copying this please remember to SCROLL DOWN! there is more code than this!!!
  42. // To copy all of it you can use: Ctrl + A this selects everything
  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. // DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOURE DOING!
  72. window.config.version = 3;
  73. window.stop();
  74. window.document.documentElement.innerHTML = `
  75. <!DOCTYPE html>
  76. <html>
  77. <head>
  78. <title>Oib.io</title>
  79. <link rel="stylesheet" type="text/css" href="css/game_style.css">
  80. <link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
  81. </head>
  82. <body id="game_body">
  83. <canvas id="game_canvas"></canvas>
  84. <script src="js/client.min.js"></script>
  85. <div id="follow_us">
  86. <div id="fb-root"></div>
  87. <div id='MFN_oib-io_300x250'>
  88. </div>
  89. </body>
  90. </html>
  91. `;
  92. if (window.location.href == "https://oib.io/") { location.href = "http://oib.io"; };
  93. var scriptList = ["https://dl.dropboxusercontent.com/s/eddw8rjarz7d0jn/oibclient.js"];
  94. var loadingScript = 0;
  95. var insertion = setInterval(function(){
  96. if (loadingScript == 0) {
  97. loadingScript = 1;
  98. var script = document.createElement('script');
  99. script.onload = function() {
  100. loadingScript = 0;
  101. }
  102. script.src = scriptList.splice(0, 1);
  103. document.body.appendChild(script);
  104. }
  105. if (scriptList.length < 1) {
  106. clearInterval(insertion);
  107. }
  108. }, 10);
  109. })();