Vertix Better Map

Makes the map faster and larger, plus adds map zoom (` and tab)

  1. // ==UserScript==
  2. // @name Vertix Better Map
  3. // @namespace http://vertix.io/
  4. // @version 1.0.0
  5. // @description Makes the map faster and larger, plus adds map zoom (` and tab)
  6. // @author dannytech
  7. // @match http://vertix.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Faster Minimap
  15. drawMiniMapFPS = 1;
  16.  
  17. // Larger map
  18. $("#map").css("width", "300px");
  19. $("#map").css("height", "300px");
  20.  
  21. // Zoom
  22. $("#cvs").keydown(function(a) {
  23. var b = a.keyCode ? a.keyCode : a.which;
  24. if (b === 9) { // Zoom in using `
  25. maxScreenHeight = 3000;
  26. maxScreenWidth = 3000;
  27. resize();
  28. } else if (b === 192) { // Zoom out using Tab
  29. maxScreenHeight -= 1e3;
  30. maxScreenWidth -= 1e3;
  31. resize();
  32. }
  33. });
  34. })();