Starve.io Zoom Fix

Fix the zoom of starve.io

  1. // ==UserScript==
  2. // @name Starve.io Zoom Fix
  3. // @description Fix the zoom of starve.io
  4. // @version 0.1
  5. // @license MIT
  6. // @run-at document-start
  7. // @match https://starve.io*
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/1349814
  10. // ==/UserScript==
  11.  
  12. var _scr = {};
  13. for (const key in screen) {
  14. switch (key) {
  15. case "width":
  16. _scr[key] = 3840;
  17. break;
  18. case "height":
  19. _scr[key] = 2160;
  20. break;
  21. default:
  22. _scr[key] = screen[key];
  23. break;
  24. }
  25. }
  26. window.screen = _scr;