connecting screen skipper

connects you to a server, after you change gamemode or region (takes some time)

  1. // ==UserScript==
  2. // @name connecting screen skipper
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.0
  5. // @description connects you to a server, after you change gamemode or region (takes some time)
  6. // @author r!PsAw
  7. // @match https://diep.io/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=diep.io
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. function clear(obj, funcName) {
  14. obj[funcName] = () => {};
  15. }
  16.  
  17. function start(){
  18. //clear(extern, 'showMenu'); //soft lock game after death
  19. //clear(extern, 'setScreenSizeZoom'); //stop scaling entirely
  20. //clear(extern, 'connectLobby'); //soft lock game immediatly
  21. clear(extern, 'disconnect_game'); //required for the script to work
  22. clear(extern, 'setGamemode'); //skipping connection screen after switching gamemode
  23. clear(extern, 'setRegion'); //skipping connection screen after switching region
  24. }
  25.  
  26. function init(){
  27. (window.lobby_ip)?start():setTimeout(init, 100);
  28. }
  29. init();