您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Reduce lag and cap FPS in Shellshockers.io (No maximum cap depending on your pc)
- // ==UserScript==
- // @name Shellshock.io Performance Booster
- // @namespace https://shellshock.io/
- // @version 1.0
- // @description Reduce lag and cap FPS in Shellshockers.io (No maximum cap depending on your pc)
- // @author You
- // @match *://shellshock.io/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- function optimizePerformance() {
- const config = {
- shadows: false, // Disable shadows
- particles: false, // Remove extra particles
- postProcessing: false, // Turn off post-processing effects
- fpsCap: 144 // Set FPS cap (Adjustable)
- };
- const optimize = () => {
- try {
- let settings = window.localStorage.getItem('settings');
- if (settings) {
- settings = JSON.parse(settings);
- settings.shadows = config.shadows;
- settings.particles = config.particles;
- settings.postProcessing = config.postProcessing;
- settings.fps = config.fpsCap;
- window.localStorage.setItem('settings', JSON.stringify(settings));
- console.log("Performance settings applied!");
- }
- } catch (e) {
- console.error("Failed to apply settings:", e);
- }
- };
- // Hook into the game rendering loop
- const modifyRendering = () => {
- requestAnimationFrame = (callback) => setTimeout(callback, 1000 / config.fpsCap);
- console.log("FPS adjusted to:", config.fpsCap);
- };
- optimize();
- modifyRendering();
- }
- // Run optimization when the game starts
- window.addEventListener('load', optimizePerformance);
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址