Toggleable (Key V) ESP for Shell Shockers (PROOF OF CONCEPT)

for all

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Toggleable (Key V) ESP for Shell Shockers (PROOF OF CONCEPT)
// @version      0.3
// @author       A3+++
// @description  for all
// @match        https://shellshock.io/*
// @grant        none
// @namespace    https://greasyfork.org/users/815159
// @run-at       document-start
// ==/UserScript==
 
(function () {
    "use strict"
    window.espEnabled = false;
    window.espKey = "V";
    window.addEventListener("keydown", function (e) {
        if (extern.inGame) {
            if (e.key.toUpperCase() == window.espKey) {
                window.espEnabled = !window.espEnabled
            }
        } else {
            window.espEnabled = false
        }
    })
    XMLHttpRequest = class extends XMLHttpRequest {
        constructor() {
            super(...arguments)
        }
        open() {
            if (arguments[1] && arguments[1].includes("js/shellshock.js")) {
                this.scriptMatch = true;
                window[atob("Y29uc29sZQ==")]["log"](atob('RVNQIElOIFVTRS4='));
            }
 
            super.open(...arguments)
        }
        get response() {
            if (this.scriptMatch) {
                let responseText = super.response;
                responseText = responseText.replace(/.prototype.setVisible=function\(\w\){/, `.prototype.setVisible=function(eee){asda=document;arguments[0]=true;asda.title=atob('U2hlbGwgU2hvY2tlcnMgfCBBbHQgVVJMOiBFU1AgSU4gVVNF');this.getChildTransformNodes().forEach(child=>child.setRenderingGroupId&&child.setRenderingGroupId(window.espEnabled?1:0));`);
 
                return responseText;
            }
            return super.response;
        }
    };
}())