arras.io fov changer by KarstenKirsche

custom fov for arras.io!

当前为 2023-11-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name arras.io fov changer by KarstenKirsche
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.3
  5. // @description custom fov for arras.io!
  6. // @author You
  7. // @match https://arras.io/
  8. // @icon https://www.google.com/s2/favicons?domain=arras.io
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13.  
  14. let lock = 0;
  15. document.addEventListener('keydown', function(event) {
  16. if (event.code === "KeyX" && !lock) {
  17. Array.prototype.shift = new Proxy(Array.prototype.shift, {
  18. apply(shift, array, args) {
  19. if (array[0] === 'u') {
  20. array[4] = array[4] * 5;
  21. lock = 1;
  22. }
  23. return shift.apply(array, args);
  24. }
  25. });
  26. }
  27. });
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. //// with this script, you get fully custom fov!
  35. //
  36. //// change this to what you want your fov to be:
  37. // var customFov = 500;
  38. (function() {
  39. 'use strict';
  40. alert("Injected Hacks by KastenKirsche");
  41. })();