Shellshockers Speed Hack 2024 and Infinity jump

Infinity jump and speedhack!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Shellshockers Speed Hack 2024 and Infinity jump
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Infinity jump and speedhack!
// @author       Prostreamer2024
// @match       https://shellshock.io/
// @icon         https://www.google.com/shellshockers.io
// @grant        none
// @license MIT 
// ==/UserScript==
 
(function() {
    'use strict';
    const oldSpeed = 80;
    const oldKeyDown = window.onkeydown;
    let infinityJump = false;
    let speedHack = false;
    window.onkeydown = (e)=>{
      if(e.code === 'Numpad7') infinityJump = !infinityJump;
      if(e.code === 'Numpad8') {
          speedHack = !speedHack;
          if(speedHack){
             window.speed = 300;
          } else{
             window.speed = oldSpeed;
          }
      }
        if(e.code === 'Space' && infinityJump){
           window.canJump = true;
        }
        if(oldKeyDown) oldKeyDown(e);
    }
})();