Vertix Better Map

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Vertix Better Map
// @namespace    http://vertix.io/
// @version      1.0.0
// @description  Makes the map faster and larger, plus adds map zoom (` and tab)
// @author       dannytech
// @match        http://vertix.io/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Faster Minimap
    drawMiniMapFPS = 1;

    // Larger map
    $("#map").css("width", "300px");
    $("#map").css("height", "300px");

    // Zoom
    $("#cvs").keydown(function(a) {
        var b = a.keyCode ? a.keyCode : a.which;
        if (b === 9) { // Zoom in using `
            maxScreenHeight = 3000;
            maxScreenWidth = 3000;
            resize();
        } else if (b === 192) { // Zoom out using Tab
            maxScreenHeight -= 1e3;
            maxScreenWidth -= 1e3;
            resize();
        }
    });
})();