Get better FPS in shell shockers!

May or may not improve your fps in shell shockers.

安装此脚本
作者推荐脚本

您可能也喜欢Mod Panel for Shell Shockers

安装此脚本
  1. // ==UserScript==
  2. // @name Get better FPS in shell shockers!
  3. // @version 0.3
  4. // @author A3+++
  5. // @description May or may not improve your fps in shell shockers.
  6. // @match *://shellshock.io/*
  7. // @run-at document-start
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/815159
  10. // ==/UserScript==
  11. (function () {
  12. window.XMLHttpRequest = class extends window.XMLHttpRequest {
  13. constructor(){super(...arguments) }
  14. open() {
  15. if (arguments[1] && arguments[1].includes("js/shellshock.js"))
  16. this.aaaaa = 1;
  17. super.open(...arguments);
  18. }
  19. get response() {
  20. if (this.aaaaa) {
  21. let responseText = super.response;
  22. let match = responseText.match(/(\w).Skeleton.prototype.disableBlending/);
  23. 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]}`)}
  24. return responseText;
  25. }
  26. return super.response;
  27. }
  28. };
  29. }())
  30.