Slither.io Zoom Hack WORKING 2025

Allows zooming in and out in Slither.io using keys 8 and 9. Key 1 reset the zoom - The domain name changed for slither so this has been updated to work.

  1. // ==UserScript==
  2. // @name Slither.io Zoom Hack WORKING 2025
  3. // @namespace http://slither.io/
  4. // @version 1.0
  5. // @description Allows zooming in and out in Slither.io using keys 8 and 9. Key 1 reset the zoom - The domain name changed for slither so this has been updated to work.
  6. // @author Icewerve
  7. // @grant none
  8. // @match http://slither.com/io
  9. // @match http://slither.io/?c
  10. // @match http://slither.io
  11. // @license MIT
  12.  
  13. // ==/UserScript==
  14.  
  15. // Enable debug logging
  16. window.logDebugging = false;
  17. window.log = function() {
  18. if (window.logDebugging) {
  19. console.log.apply(console, arguments);
  20. }
  21. };
  22.  
  23. window.zoomMultiplier = 1.0;
  24.  
  25. window.updateZoom = function() {
  26. window.gsc = window.zoomMultiplier;
  27. document.getElementById("zoom_overlay").innerHTML =
  28. `Press (8/9) to change zoom: ${window.zoomMultiplier.toFixed(1)}`;
  29. };
  30.  
  31.  
  32. window.recursiveZoomUpdate = function() {
  33. window.gsc = window.zoomMultiplier;
  34. requestAnimationFrame(window.recursiveZoomUpdate);
  35. };
  36.  
  37.  
  38. window.resetZoom = function() {
  39. window.zoomMultiplier = 1.0;
  40. window.updateZoom();
  41. };
  42.  
  43. window.adjustZoom = function(amount) {
  44. window.zoomMultiplier = Math.max(0.2, Math.min(3.0, window.zoomMultiplier + amount));
  45. window.updateZoom();
  46. };
  47.  
  48. document.oldKeyDown = document.onkeydown;
  49. document.onkeydown = function(e) {
  50. if (typeof document.oldKeyDown === "function") {
  51. document.oldKeyDown(e);
  52. }
  53.  
  54. if (document.activeElement.parentElement !== window.nick_holder) {
  55. if (e.keyCode === 57) {
  56. window.adjustZoom(0.1);
  57. } else if (e.keyCode === 56) {
  58. window.adjustZoom(-0.1);
  59. } else if (e.keyCode === 49) {
  60. window.resetZoom();
  61. }
  62. }
  63. };
  64.  
  65. window.initZoomOverlay = function() {
  66. let overlay = document.createElement("div");
  67. overlay.id = "zoom_overlay";
  68. overlay.style = "color: #FFF; font-family: Arial, sans-serif; font-size: 18px; position: fixed; left: 30px; top: 65px; z-index: 1000;";
  69. overlay.innerHTML = "Press (8/9) to change zoom: " +window.zoomMultiplier + '</span>';
  70. document.body.appendChild(overlay);
  71. };
  72.  
  73. window.initt = function() {
  74. window.initZoomOverlay();
  75. window.updateZoom();
  76. window.recursiveZoomUpdate();
  77. };
  78.  
  79. window.initt();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址