Get better FPS in shell shockers!

May or may not improve your fps in shell shockers.

安裝腳本?
作者推薦腳本

您可能也會喜歡 Mod Panel for Shell Shockers

安裝腳本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Get better FPS in shell shockers!
// @version      0.3
// @author       A3+++
// @description  May or may not improve your fps in shell shockers.
// @match        *://shellshock.io/*
// @run-at       document-start
// @grant        none
// @namespace    https://greasyfork.org/users/815159
// ==/UserScript==
(function () {
    window.XMLHttpRequest = class extends window.XMLHttpRequest {
        constructor(){super(...arguments) }
        open() {
            if (arguments[1] && arguments[1].includes("js/shellshock.js"))
                this.aaaaa = 1;
            super.open(...arguments);
        }
        get response() {
            if (this.aaaaa) {
                let responseText = super.response;
                let match = responseText.match(/(\w).Skeleton.prototype.disableBlending/);
                if (match) {responseText = responseText.replace(match[0], `(function(babe){babe.Scene = new Proxy(babe.Scene, {construct: function (func, args) {const product = new func(...args);["probesEnabled", "particlesEnabled", "texturesEnabled", "fogEnabled", "lightsEnabled", "postProcessesEnabled", "lensFlaresEnabled", "renderTargetsEnabled", "shadowsEnabled", "proceduralTexturesEnabled"].forEach(a => Object.defineProperty(product, a, {get: () => false}));return product}})}(${match[1]}));${match[0]}`)}
                return responseText;
            }
            return super.response;
        }
    };
}())