TravianHelper(Travian Legends++)

Villages, Troops, Resources Overview, Quick links. Based on Travian Legends++.

// ==UserScript==
// @name        TravianHelper(Travian Legends++)
// @namespace   https://greasyfork.org/
// @author      bingkx & SkillsBoY
// @version     0.1.0
// @license     GPLv3
// @description Villages, Troops, Resources Overview, Quick links. Based on Travian Legends++.
// @include     *://*.travian.*
// @include     *://*/*.travian.*
// @exclude     *://*.travian*.*/hilfe.php*
// @exclude     *://*.travian*.*/log*.php*
// @exclude     *://*.travian*.*/index.php*
// @exclude     *://*.travian*.*/anleitung.php*
// @exclude     *://*.travian*.*/impressum.php*
// @exclude     *://*.travian*.*/anmelden.php*
// @exclude     *://*.travian*.*/gutscheine.php*
// @exclude     *://*.travian*.*/spielregeln.php*
// @exclude     *://*.travian*.*/links.php*
// @exclude     *://*.travian*.*/geschichte.php*
// @exclude     *://*.travian*.*/tutorial.php*
// @exclude     *://*.travian*.*/manual.php*
// @exclude     *://*.travian*.*/ajax.php*
// @exclude     *://*.travian*.*/ad/*
// @exclude     *://*.travian*.*/chat/*
// @exclude     *://forum.travian*.*
// @exclude     *://board.travian*.*
// @exclude     *://shop.travian*.*
// @exclude     *://*.travian*.*/activate.php*
// @exclude     *://*.travian*.*/support.php*
// @exclude     *://help.travian*.*
// @exclude     *://*.answers.travian*.*
// @exclude     *.css
// @exclude     *.js
// @grant       GM_addStyle
// @grant       GM_info
// ==/UserScript==

const myVersion = GM_info.script.version;


// inject css
{
    GM_addStyle(`
        .us-draggable {
            position: absolute;
            z-index: 9;
            background-color: #f1f1f1;
            border: 1px solid #d3d3d3;
            text-align: center !important;
            white-space: nowrap;
        }

        .us-draggable .us-draggable--header {
            padding: 10px;
            cursor: move;
            z-index: 10;
            background-color: #2196f3;
            color: #fff;
        }

        .us-draggable li {
            text-align: left;
        }

        .us-draggable ul {
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin: 0 5px;
            padding: 0 0 0 16px;
        }

        .us-draggable td > a {
            display: block;
            padding: 14px;
        }

        .us-draggable td {
            padding: unset;
        }

        .us-draggable li.done {
            background-color: green;
        }

        .us-barBox {
            width: 50px;
            height: 7px;
            background-color: #52372a;
            margin: 0 2px;
        }

        .us-resources {
            display: flex;
            flex-direction: row;
            margin: 5px;
        }

        .us-bar {
            background-color: #699e32;
            height: 100%;
        }

        .us-resourceValue {
            font-size: 11px;
            font-weight: 700;
            text-align: end;
            margin-right: 2px;
        }

        .us--text-alert {
            color: #0022af;
        }

        .us-map-open {
            position: fixed !important;
            inset: 0 !important;
            width: unset !important;
            height: unset !important;
        }

        .us-alertFill--yellow {
            fill: yellow;    
        }
    
        .us--display-block {
            display: block !important;
        }

        .us-settingsIconSVG > svg:hover {
            fill: whitesmoke;
        }
    `);
}

// travian utilities
{
    /**
     * Makes the building icons on the right over the villages available.
     * (same functionality as travian plus *and more)
     */
    function makeBuildingIconsAvailable() {
        // marketplace
        {
            const marketIcon = document.querySelector("#sidebarBoxActiveVillage > div.header > div").childNodes[1];
            const marketIconClone = marketIcon.cloneNode(true);
            marketIconClone.classList.remove("gold");
            marketIconClone.classList.add("green");
            marketIconClone.removeAttribute("onClick");
            marketIconClone.title = "Marketplace||";
            marketIconClone.classList.contains("disabled") ? marketIconClone.href = "#" : marketIconClone.href = "/build.php?gid=17";
            marketIcon.replaceWith(marketIconClone);
        }

        // barracks
        {
            const barracksIcon = document.querySelector("#sidebarBoxActiveVillage > div.header > div").childNodes[5];
            const barracksIconClone = barracksIcon.cloneNode(true);
            barracksIconClone.classList.remove("gold");
            barracksIconClone.classList.add("green");
            barracksIconClone.removeAttribute("onClick");
            barracksIconClone.title = "Barracks||";
            barracksIconClone.classList.contains("disabled") ? barracksIconClone.href = "#" : barracksIconClone.href = "/build.php?gid=19";
            barracksIcon.replaceWith(barracksIconClone);
        }

        // stable
        {
            const stableIcon = document.querySelector("#sidebarBoxActiveVillage > div.header > div").childNodes[9];
            const stableIconClone = stableIcon.cloneNode(true);
            stableIconClone.classList.remove("gold");
            stableIconClone.classList.add("green");
            stableIconClone.removeAttribute("onClick");
            stableIconClone.title = "Stable||";
            stableIconClone.classList.contains("disabled") ? stableIconClone.href = "#" : stableIconClone.href = "/build.php?gid=20";
            stableIcon.replaceWith(stableIconClone);
        }

        // workshop
        {
            const workshopIcon = document.querySelector("#sidebarBoxActiveVillage > div.header > div").childNodes[13];
            const workshopIconClone = workshopIcon.cloneNode(true);
            workshopIconClone.classList.remove("gold");
            workshopIconClone.classList.add("green");
            workshopIconClone.removeAttribute("onClick");
            workshopIconClone.title = "Workshop||";
            workshopIconClone.classList.contains("disabled") ? workshopIconClone.href = "#" : workshopIconClone.href = "/build.php?gid=21";
            workshopIcon.replaceWith(workshopIconClone);
        }

        const villageList = document.querySelector("#sidebarBoxVillagelist > div.header > div");
        const villageStatistics = document.querySelector("#sidebarBoxVillagelist > div.header > div").childNodes[1];

        // rally point
        {
            const villageStatisticsClone = villageStatistics.cloneNode(true);
            const villageStatisticsCloneSVG = villageStatisticsClone.querySelector("svg");
            const img = document.createElement("img");
            img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAlCAYAAAAuqZsAAAAAAXNSR0IArs4c6QAACbxJREFUWEedWHlwk2Uefr58yZekuZOmSUNPgdKWaoURFVBXV+RQ8WKFdVdZdddj12N0B3fcXUVRVNRRh3FAHXScZdcDQbE4wKoUKodTaCn2SujdNGmTJmnufF/u7KQHzd12v3+Smff93t/ze37P73g/ArkeAkAs546kRYVctFwt4i21eiItpJgjjoHoMg+aB2d/QnznhFFi8ndu76bvJlZdXfUPJR9rKbVQqqrgVVCOADVqoT3DBnpv2wC912g2dwNwTr8aNx1L8TsOKv7EgWV9puhKpC0rhcQ1lZoXl1QX1qy/peTeQD6F3n4HtEQQPIsf3i7f0Solb9n5fte3P7WP7RkbGzuXCHAiLNNnx/+lAJtGnIGUrHEtkEjmL1so//iOlZobORQJVYEQ8zQSyCR50Flc+O95a0t7i/0An2CKRQp53hffnXsoflgupUwiSd+SjD+W6NAlzJNqyNt4w8KmoFAw8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AFSAgrK8BFE3CcLEgSfsgrCUQkGpFFaDDerWi9B1DOGqK4tR1zwI6vpC9HYYXN98eKHKpmdMqbfubKwQaVQmFxfWhs3r3nxg65otHocXMTKC4cNaVF5fA6/ZA+liJeSlcgQ8AZBNHXDbPaDpGJRiHk629kKxTgOT0RH46r2WTb2/jNZlBJGlaKZ9VEkdEmUyqWTdb2/45JFXNtzD4RJEmKZBMxG4XG6IpBSIAQsUBj1E7PjIH8OA2Yv6piEQl8ugqBBHP956ZtNwl/3A9ByQu3xPrSaUi5wvsO7+3epPH9uxfrNQygeLRcDTY4CkfwgYc6JQLUE4HEWf0YWDP/Sg6MH58PpC0eN7B58+W6/bNVMGXlpPqZm5CnDCOwS59t4V/3x8x6pteaI8+Bv1GD7RgatrNSApEvWnBjAi4yIcDCKg5rqOfXbxNz0XRurn9IVtNsCmqEy5hJDVS8ufeerdtVsdjUbxmsoSDPUM4XSXFSV3VkBQyMOA1kL/Z3vz/fpu48GZMi+X5tIrf46ITi1VLi5fv3HLij1qGVs1cLAb8+5bCJJH4PiXXfsb6/QvmUwm3azCkGPTnFpS4jnKfKX6jieurC+vFlfbHQxTt/uXh/vaRr4GEJpxOsmaidMTxgSwmTZmWa++qnSJRCrZ3PPLyIc2m61rpmkh8+fczIf/Dz5uX2fNtXInAAAAAElFTkSuQmCC";
            img.style = "position: absolute; z-index: 3; height: 37px;";
            villageStatisticsCloneSVG.replaceWith(img);
            villageStatisticsClone.classList.remove("gold");
            villageStatisticsClone.classList.add("green");
            villageStatisticsClone.removeAttribute("onClick");
            villageStatisticsClone.removeAttribute("id");
            villageStatisticsClone.title = "Rally Point||";
            villageStatisticsClone.href = "/build.php?id=39&gid=16";
            villageList.insertBefore(villageStatisticsClone, villageStatistics);
        }

        // academy
        {
            const villageStatisticsClone = villageStatistics.cloneNode(true);
            const villageStatisticsCloneSVG = villageStatisticsClone.querySelector("svg");
            const img = document.createElement("img");
            img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC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y0KhsNFoNNg7urv3trZ2tHi9/vX333/r/rJZ19hDcSVBVwvegXqmlhbwzj8+f9jt9fU//m+/elwhk804f0aZYeIEm3Tlyo1MKZ1EVpaOYMBPW1u3+90ly/8pEo1sPiGJ/9CRnMLLjInOQmsoLrut8KMbfjnnTmN3BYcaO6mvqyOQ1YkQjvsPb3M7xB+6H8n8ObNff/utZx75aNlX0oqKeXhcg3y1eefmDRu3PgK0HCePztLwnh7KyaNag+raVzddtsHXK2O28h6qGmppPthOt7IWtUVKzcqh58M+4YVxrZjslpuuftXt9jk7u/t2RKPCYCAQWH0ynXUunfi4hv1UKsxoVt/79q5FH2tFIw11AXz+MENDIZKaGCFfhNqVA3/09ceeOR2NdjZy6RyBnZn/UKmY9Js3Lq9acMnEbCGRGTtc3f4wDU19NO/ti9R/7l6QSCQafoxEOVl+GmAn1tlnp8yOLj+VTnXVlfeUvlQ+316ekoua3s6A2LBjoLJ9t/t3yWTy4LmAOtnPmSP2veYPDND4RuE0/KYUMAJWCSRE6DvGHp6I6yx/Ol70/xJedGL9TNjkAAAAAElFTkSuQmCC";
            img.style = "position: absolute; z-index: 3; height: 37px;";
            villageStatisticsCloneSVG.replaceWith(img);
            villageStatisticsClone.classList.remove("gold");
            villageStatisticsClone.classList.add("green");
            villageStatisticsClone.removeAttribute("onClick");
            villageStatisticsClone.removeAttribute("id");
            villageStatisticsClone.title = "Academy||";
            villageStatisticsClone.href = "/build.php?gid=22";
            villageList.insertBefore(villageStatisticsClone, villageStatistics);
        }

        // smithy
        {
            const villageStatisticsClone = villageStatistics.cloneNode(true);
            const villageStatisticsCloneSVG = villageStatisticsClone.querySelector("svg");
            const img = document.createElement("img");
            img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAlCAYAAAAuqZsAAAAAAXNSR0IArs4c6QAADNVJREFUWEeVmAlYk2e2x39fviRkI6yyBVkUWVQWBfed2qqtOr3XVlu1nfa2jnN12qq3dpk6tbVzO0+v127TxY7TUa+17ltdq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";
            img.style = "position: absolute; z-index: 3; height: 37px;";
            villageStatisticsCloneSVG.replaceWith(img);
            villageStatisticsClone.classList.remove("gold");
            villageStatisticsClone.classList.add("green");
            villageStatisticsClone.removeAttribute("onClick");
            villageStatisticsClone.removeAttribute("id");
            villageStatisticsClone.title = "Smithy||";
            villageStatisticsClone.href = "/build.php?gid=13";
            villageList.insertBefore(villageStatisticsClone, villageStatistics);
        }

        // town hall
        {
            const villageStatisticsClone = villageStatistics.cloneNode(true);
            const villageStatisticsCloneSVG = villageStatisticsClone.querySelector("svg");
            const img = document.createElement("img");
            img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAlCAYAAAAuqZsAAAAAAXNSR0IArs4c6QAADn1JREFUWEeVmHl8VeWZx7/n7vuW3OwkIQskIZCwBBBRcUUFhbq0ozBotVpwH+3YWrdaqZ0ZWxU76oyCUlIBi5QBqRD2VUJYAiELIft+s9x7c/f93vkkGFkMfPT8c+/7nue85/cs7+/5vUfgapcAxIYMvvszYq0GEkBo+dbgqstc+eb31v3OdOjOj7qGHnjxhSe2zp45be49D/xyRigSOnke/BB8gdjIYGTVUZy7MpwLUL4FdsH06j6cR3DfwjvX543LXbD8v1ZMAhpGYF2I3sX+fov6h6XmQsRG9fKKiwzDFr/xxLSjtxVpp+6p7K9YW9b2SU2raxMxrD8q9KMYXxyUi1y7aHqUsI1MFeYantm94roVhCAQDZGi9LCt0uVZf9C24euD3Z/aXZEjEAtfUiyXBe172b3kfecHP7bGEsvenV6fl6rRJ6Wk4O5vRW/QMuCTg38QT1Bgf2Vfc+luy/rDVdbSYJD6ke2TkZF2R052+g2793zzBuAbAp6cPOb6QASzra9j4+WOfAfs/J9RiveikC+ck/ruqn+f+JxSZyYw2ItBBbaQHKkIxKII1gEXJr0Cf0Sg2xXjm1rP2U07msoOV1m3vPLKC3+eUVxUPP/eR271+P27hpZVKLSz03W6f7VYLZudkchxwA3oBRBdFrHv53BkRquVzK5cdf1ejSFeopXLEDlbkSj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HQ2WALdem0VDq4MtdVZUSUEmC1oOeLz48mJMLnNQe85D6oKlyBQKfvqzW9DrNRw5coqOti7y8rMREWXzVwew+QSMYhGCKR6jXodEKiUhKYmiogmkZ2RQe66ZnfsrkIS9HD+0b4ug1ElnvL5h1q6sIr1GkEbxOiK4rH6a9nSikonRCQItnRG6bA7MCXJCSSLEXVFUBRqm7rGz+/gAPRPSmVZcxC8efJiMhByOVZyit3uA+EQzSrmYLzfswpiei1gswRwfh1KpwOV0IZXJkCsUeDwePMEIHS1N9HV3Vu7dveedIYIVTPHyuXKdPO62JZm/ufPxzEKJHHyuCIMON5FoGEu3E6lIjtYoQ4QYU5IcW1+QoD+MUitDIhOQycSEO8xcl3wPLQ0B3DEdY40RVAqBv60tIy2nkHhzPL29/cNgQuHQcA3brNZhrquurmrobu/YVltd/UEgEDh3eUtKMSSqSnKn6mfMW5r+VAyihlSx/puNA7biknyTUh+JeUN2wVqZgiioJGVOD5qkMB5PgIFeD0JEQtgpY4LsV8yYUozH2YvPNcCxWgudVj+KiIdYLDKs++RyBXKFFLvV5i/7etuGoN/bVF1dPbQjhxv5BWCXioyhkW7IaEyOblbEq/XceustT9bW1taUlJQsypswIS8m9uFRniOkbscTdqKSxOFp05MgLkZvMJOfl0t+fh7BUIjPN+2gvbMHsd+OXCYbBjY2K5OPP/pwU11NzR99Xu+xEYE6AuOqB97vCSIBEswJc6fPnH6Xz+PT3njzLXdlZWcb3W43CQnm4X4ZJYZUKkUqkeByOklMS6P82Gn0SjFSqQxrf5/ti3XrVvT391faB+07iBEYTXhdAmzoLBe76peC4fb6nX7LzMx8qKSkZGFNff3neo16zrz58+84VnHMMvOaa6bJpNJwS2trp9FoTKyoOFre22M5IBaLJW63e7C+vv79kXRd/LqLAY56Er/6N58LAvgKEnNoOuXbWhkSf5KhpjwiZy4/2F5J2v8/cD2Cj9eMtyMAAAAASUVORK5CYII=";
            img.style = "position: absolute; z-index: 3; height: 37px;";
            villageStatisticsCloneSVG.replaceWith(img);
            villageStatisticsClone.classList.remove("gold");
            villageStatisticsClone.classList.add("green");
            villageStatisticsClone.removeAttribute("onClick");
            villageStatisticsClone.removeAttribute("id");
            villageStatisticsClone.title = "Town Hall||";
            villageStatisticsClone.href = "/build.php?gid=24";
            villageList.insertBefore(villageStatisticsClone, villageStatistics);
        }

    }

    /**
     * On coordinates click, this will fill in the village destination fields.
     * (same functionality as travian plus)
     */
    function coordsClickFillVillageDestinationFields() {
        document.querySelector("#sidebarBoxVillagelist > div.content > div.villageList").classList.add("shortcutsEnabled");

        const notActiveVillageList = document.querySelectorAll("#sidebarBoxVillagelist > div.content > div.villageList > div.dropContainer > div.listEntry:not(.active)");

        notActiveVillageList.forEach((village) => {
            village.querySelector(".coordinatesGrid").onclick = function () {
                const villageNameInput = document.querySelector("#enterVillageName");
                const xCoordInput = document.querySelector("#xCoordInput");
                const yCoordInput = document.querySelector("#yCoordInput");

                const name = village.querySelector(".name").textContent;
                let coordinateX = village.querySelector(".coordinateX").textContent;
                let coordinateY = village.querySelector(".coordinateY").textContent;

                coordinateX = parseInt(coordinateX.match(/[−\d]+/g).join("").replace("−", "-"));
                coordinateY = parseInt(coordinateY.match(/[−\d]+/g).join("").replace("−", "-"));

                villageNameInput.value = name;
                xCoordInput.value = coordinateX;
                yCoordInput.value = coordinateY;
            };
        });
    }

    /**
     * Parse active village building list.
     */
    function getBuildingList() {
        const buildingList = document.querySelector("#contentOuterContainer > div div.buildingList");
        if (!buildingList) return [];

        // for each list item parse name, lvl, build duration and timer (.name)(.lvl)(.buildDuration)(.timer)
        const buildingListLI = buildingList.querySelectorAll("li");

        const parsedBuildingList = [...buildingListLI].map(buildingItem => {
            const name = buildingItem.querySelector(".name").childNodes[0].textContent.trim();
            const lvl = buildingItem.querySelector(".lvl").textContent;
            const timestamp = Math.floor(Date.now() / 1000);
            const buildDuration = parseInt(buildingItem.querySelector(".buildDuration > .timer").getAttribute("value"));
            const timestampEnd = timestamp + buildDuration;

            return {
                name,
                lvl,
                buildDuration,
                timestampEnd
            };
        });

        return parsedBuildingList;
    }

    /**
     * Parse active village id and name.
     */
    function getActiveVillage() {
        const activeVillage = document.querySelector("#sidebarBoxVillagelist > div.content > div.villageList .listEntry.active");
        const id = activeVillage.dataset.did;
        const name = activeVillage.querySelector(".name").textContent;

        return {
            id,
            name
        };
    }

    /**
     * Parse active village storage capacity.
     */
    function getStorage() {
        return {
            warehouse: parseInt(document.querySelector("#stockBar > div.warehouse > div > div").textContent.replace(/[^\x00-\x7F]|,/g, "")),
            granary: parseInt(document.querySelector("#stockBar > div.granary > div > div").textContent.replace(/[^\x00-\x7F]|,/g, ""))
        };
    }

    /**
     * Parse active village available resources.
     */
    function getResources() {
        return {
            lumber: resources.storage.l1,
            clay: resources.storage.l2,
            iron: resources.storage.l3,
            crop: resources.storage.l4
        };
    }

    /**
     * Parse active village hourly resource production.
     */
    function getHourlyProduction() {
        // const lumberTitle = document.querySelector("#stockBar > div.warehouse > a:nth-child(2)").title;
        // const clayTitle = document.querySelector("#stockBar > div.warehouse > a:nth-child(3)").title;
        // const ironTitle = document.querySelector("#stockBar > div.warehouse > a:nth-child(4)").title;

        // const cropTitle = document.querySelector("#stockBar > div.granary > a:nth-child(3)").title;
        // const cropTemp = cropTitle.substring(cropTitle.indexOf(":") + 2, cropTitle.indexOf("<"));
        // const spanTemp = document.createElement("span");
        // spanTemp.innerHTML = cropTemp;

        return {
            lumber: resources.production.l1,
            clay: resources.production.l2,
            iron: resources.production.l3,
            crop: resources.production.l4
        };
    }

    /**
     * Parse village list.
     */
    function getVillageList() {
        const villageList = document.querySelectorAll("#sidebarBoxVillagelist > div.content > div.villageList > div.dropContainer");

        return [...villageList].map(village => {
            const index = village.dataset.sortindex; // starts at 1
            const id = village.querySelector(".listEntry").dataset.did;
            const href = village.querySelector(".listEntry a").getAttribute("href");
            const name = village.querySelector(".listEntry .name").textContent;

            return {
                index,
                id,
                href,
                name
            };
        });
    }

    /**
     * Parse barracks training list.
     */
    function getBarracksTrainingList() {
        const training = document.querySelectorAll("#build > table > tbody > tr:not(.next)");
        if (!training) return [];

        return [...training].map(unit => {
            // const unitIcon = unit.querySelector(".desc>.unit").outerHTML;
            const name = unit.querySelector(".desc").childNodes[2].textContent.replace(/\s+/g, " ").trim();
            const fin = unit.querySelector(".fin>span").textContent;
            const timestamp = Math.floor(Date.now() / 1000);
            const dur = parseInt(unit.querySelector(".dur>.timer").getAttribute("value"));
            const timestampEnd = timestamp + dur;

            return {
                // unitIcon,
                name,
                timestampEnd,
                fin
            };
        });
    }

    /**
     * Parse stable training list. 
     */
    function getStableTrainingList() {
        const training = document.querySelectorAll("#build > table > tbody > tr:not(.next)");
        if (!training) return [];

        return [...training].map(unit => {
            // const unitIcon = unit.querySelector(".desc>.unit").outerHTML;
            const name = unit.querySelector(".desc").childNodes[2].textContent.replace(/\s+/g, " ").trim();
            const fin = unit.querySelector(".fin>span").textContent;
            const timestamp = Math.floor(Date.now() / 1000);
            const dur = parseInt(unit.querySelector(".dur>.timer").getAttribute("value"));
            const timestampEnd = timestamp + dur;

            return {
                // unitIcon,
                name,
                timestampEnd,
                fin
            };
        });
    }

    /**
     * // TODO not tested
     * Parse workshop training list. 
     */
    function getWorkshopTrainingList() {
        const training = document.querySelectorAll("#build > table > tbody > tr:not(.next)");
        if (!training) return [];

        return [...training].map(unit => {
            // const unitIcon = unit.querySelector(".desc>.unit").outerHTML;
            const name = unit.querySelector(".desc").childNodes[2].textContent.replace(/\s+/g, " ").trim();
            const fin = unit.querySelector(".fin>span").textContent;
            const timestamp = Math.floor(Date.now() / 1000);
            const dur = parseInt(unit.querySelector(".dur>.timer").getAttribute("value"));
            const timestampEnd = timestamp + dur;

            return {
                // unitIcon,
                name,
                timestampEnd,
                fin
            };
        });
    }

    /**
     * Parse player name
     */
    function getPlayerName() {
        return document.querySelector("#sidebarBoxActiveVillage > div.content > div.playerName").textContent;
    }

    /**
     * Get building list from localStorage.
     */
    function getLocalStorage_buildingList(playerName, villageList) {
        let localStorage_buildingList = localStorage[`us_${playerName}_buildingList`];

        if (localStorage_buildingList === undefined) {
            const temp = {};

            for (const village of villageList) {
                temp[village.id] = [];
            }

            localStorage_buildingList = temp;
            localStorage[`us_${playerName}_buildingList`] = JSON.stringify(temp);
        } else {
            localStorage_buildingList = JSON.parse(localStorage_buildingList);

            villageList.forEach(village => {
                if (localStorage_buildingList[village.id] === undefined) localStorage_buildingList[village.id] = [];
            });

            localStorage[`us_${playerName}_buildingList`] = JSON.stringify(localStorage_buildingList);
        }

        return localStorage_buildingList;
    }

    /**
     * Set building list to localStorage.
     */
    function setLocalStorage_buildingList(playerName, activeVillageID, localStorage_buildingList, buildingList) {
        localStorage_buildingList[activeVillageID] = buildingList;
        localStorage[`us_${playerName}_buildingList`] = JSON.stringify(localStorage_buildingList);
    }

    /**
     * Get barracks training list from localStorage.
     */
    function getLocalStorage_barracksTrainingList(playerName, villageList) {
        let localStorage_barracksTrainingList = localStorage[`us_${playerName}_barracksTrainingList`];

        if (localStorage_barracksTrainingList === undefined) {
            const temp = {};

            for (const village of villageList) {
                temp[village.id] = [];
            }

            localStorage_barracksTrainingList = temp;
            localStorage[`us_${playerName}_barracksTrainingList`] = JSON.stringify(temp);
        } else {
            localStorage_barracksTrainingList = JSON.parse(localStorage_barracksTrainingList);

            villageList.forEach(village => {
                if (localStorage_barracksTrainingList[village.id] === undefined) localStorage_barracksTrainingList[village.id] = [];
            });

            localStorage[`us_${playerName}_barracksTrainingList`] = JSON.stringify(localStorage_barracksTrainingList);
        }

        return localStorage_barracksTrainingList;
    }

    /**
     * Set barracks training list to localStorage.
     */
    function setLocalStorage_barracksTrainingList(playerName, activeVillageID, localStorage_barracksTrainingList, barracksTrainingList) {
        localStorage_barracksTrainingList[activeVillageID] = barracksTrainingList;
        localStorage[`us_${playerName}_barracksTrainingList`] = JSON.stringify(localStorage_barracksTrainingList);
    }

    /**
     * Get stable training list from localStorage.
     */
    function getLocalStorage_stableTrainingList(playerName, villageList) {
        let localStorage_stableTrainingList = localStorage[`us_${playerName}_stableTrainingList`];

        if (localStorage_stableTrainingList === undefined) {
            const temp = {};

            for (const village of villageList) {
                temp[village.id] = [];
            }

            localStorage_stableTrainingList = temp;
            localStorage[`us_${playerName}_stableTrainingList`] = JSON.stringify(temp);
        } else {
            localStorage_stableTrainingList = JSON.parse(localStorage_stableTrainingList);

            villageList.forEach(village => {
                if (localStorage_stableTrainingList[village.id] === undefined) localStorage_stableTrainingList[village.id] = [];
            });

            localStorage[`us_${playerName}_stableTrainingList`] = JSON.stringify(localStorage_stableTrainingList);
        }

        return localStorage_stableTrainingList;
    }

    /**
     * Set stable training list to localStorage.
     */
    function setLocalStorage_stableTrainingList(playerName, activeVillageID, localStorage_stableTrainingList, stableTrainingList) {
        localStorage_stableTrainingList[activeVillageID] = stableTrainingList;
        localStorage[`us_${playerName}_stableTrainingList`] = JSON.stringify(localStorage_stableTrainingList);
    }

    /**
     * // TODO not tested
     * Get workshop training list from localStorage.
     */
    function getLocalStorage_workshopTrainingList(playerName, villageList) {
        let localStorage_workshopTrainingList = localStorage[`us_${playerName}_workshopTrainingList`];

        if (localStorage_workshopTrainingList === undefined) {
            const temp = {};

            for (const village of villageList) {
                temp[village.id] = [];
            }

            localStorage_workshopTrainingList = temp;
            localStorage[`us_${playerName}_workshopTrainingList`] = JSON.stringify(temp);
        } else {
            localStorage_workshopTrainingList = JSON.parse(localStorage_workshopTrainingList);

            villageList.forEach(village => {
                if (localStorage_workshopTrainingList[village.id] === undefined) localStorage_workshopTrainingList[village.id] = [];
            });

            localStorage[`us_${playerName}_workshopTrainingList`] = JSON.stringify(localStorage_workshopTrainingList);
        }

        return localStorage_workshopTrainingList;
    }

    /**
     * // TODO not tested
     * Set workshop training list to localStorage.
     */
    function setLocalStorage_workshopTrainingList(playerName, activeVillageID, localStorage_workshopTrainingList, workshopTrainingList) {
        localStorage_workshopTrainingList[activeVillageID] = workshopTrainingList;
        localStorage[`us_${playerName}_workshopTrainingList`] = JSON.stringify(localStorage_workshopTrainingList);
    }

    /**
     * Get resources from localStorage.
     */
    function getLocalStorage_resources(playerName, villageList) {
        const localstorageProp = `us_${playerName}_resources`;
        let localstorage = localStorage[localstorageProp];

        if (localstorage === undefined) {
            const temp = {};

            for (const village of villageList) {
                temp[village.id] = [];
            }

            localstorage = temp;
            localStorage[localstorageProp] = JSON.stringify(temp);
        } else {
            localstorage = JSON.parse(localstorage);

            villageList.forEach(village => {
                if (localstorage[village.id] === undefined) localstorage[village.id] = [];
            });

            localStorage[localstorageProp] = JSON.stringify(localstorage);
        }

        return localstorage;
    }

    /**
     * Set resources to localStorage.
     */
    function setLocalStorage_resources(playerName, activeVillageID, localstorage, data) {
        const localstorageProp = `us_${playerName}_resources`;
        localstorage[activeVillageID] = data;
        localStorage[localstorageProp] = JSON.stringify(localstorage);
    }

    /**
     * Create a draggable element that contains the Village Overview.
     */
    function createVillageOverviewHTML() {
        const playerName = getPlayerName();
        const villageList = getVillageList();
        const activeVillage = getActiveVillage();

        // get draggable element coordinates
        let localStorage_villageOverview_coords = localStorage[`us_${playerName}_villageOverview_coords`];
        if (localStorage_villageOverview_coords === undefined) {
            localStorage_villageOverview_coords = [0, 0]; // top left
            localStorage[`us_${playerName}_villageOverview_coords`] = JSON.stringify(localStorage_villageOverview_coords);
        } else {
            localStorage_villageOverview_coords = JSON.parse(localStorage_villageOverview_coords);
        }

        const localStorage_buildingList = getLocalStorage_buildingList(playerName, villageList);
        const localStorage_barracksTrainingList = getLocalStorage_barracksTrainingList(playerName, villageList);
        const localStorage_stableTrainingList = getLocalStorage_stableTrainingList(playerName, villageList);
        const localStorage_workshopTrainingList = getLocalStorage_workshopTrainingList(playerName, villageList);

        const barracksPNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABYCAYAAAB1YOAJAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfQd0VNXW/++26ZmayaR30oDQuyCgCHYQFTvW91BsKAo+ffrsvfHsz4INBBsgTUB6aCEJkB7S+8wkmV7vnXv/604QeUiZAOr3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EauWVTT8856q2K9e+vYfHvi3QnjifgBKgf/AE6cwQ6fQoMzoXo1V0zj1/NT7Zx8jIMCdOHiY9PUm1WmJwfDfJTplqydLUnDY6NahuyU+pH3xp9ecbOpuz5dFv9M1fY3+xjgXhhxMNgdryqxsvFfQQ6b4AmQmdsprhLZfeyMrla+g/ccytSnJk0mKxyNG+vVTVAoNj+/GFdYJ1PtdkC9Mao0cK92VGas4bZd6032rxP+WjXyPGL14mRMBOXv2R7n0zlyRCsWYfyfoox/ZPkt0zi9XnvYP+/mOUyiUaG5pIZ8eYSA1x5Mguwi1VvAGPczycUlajb2fuSaNm3qEWTId+nt1vtTiLp/x/FuizGOjLvBJZCkakd9d3Bi5beWXrLW+/ZZ7oCXvY//wgx7fpqBMJJDOKJVYwRZVCZZRwo05Dl5++vXlMzSbeKrP5ruEHitOGw0AcmfysP2c6hf8RoM90cL+031eKgYM0KaZnwcprGu78wBeWNex8YozLb5zF0MA0oycK1LeE3INJUyN5t25DU20mBiqsu33ge4GQ7JkaKq4zTRzB/mz3t99alFea1/8I0GdtNq+OuD8Y835k8SXJL5bSRlkOSNKad7fUDxwoFi6+qSecTVWEdT/ut/wRydKqZkWUpPK+9ZNPpofVj7+Q63vNQzrTC08DfbYmdqa9/37bOYkJhyo6LiDR2Rv+eiGlPTP3nNgfjBwvH7FNKzVyvPJVryKt1lXTeVOMs/H9siL/bIb6qnC9TIP/XRb9G2i8yoSdX7Pn8F+HKjp/O67hVeXMswH8bNq+gUC/6jqf4bheQz+v4ZIzHMwvm73eW7ws0L/s9PX2frazebPiz1fq9/c0x1ew6N8ewSuP6fcz4rMd1auu9RkO+wybnb7dm+Kjf9cIzmpkrwrH76HBmzvg/w8f0P7kzKzGdwAAAABJRU5ErkJggg==";

        const tableRowsHTML = villageList.map(village => {
            const buildingListHTML = localStorage_buildingList[village.id].map(building => {
                const timestamp = Math.floor(Date.now() / 1000);
                const timerValue = building.timestampEnd - timestamp;
                const isDone = timerValue < 0;

                const timerHTML = isDone ? `<span style="width:50px; display:inline-block;">DONE</span>` : `<span style="width:50px; display:inline-block;" class="timer" counting="down" value="${timerValue}"></span>`;

                return `<li ${isDone ? 'class="done"' : ""}>
                            <span>${building.name}</span>
                            ${timerHTML}
                        </li>`;
            }).join("");

            let barracksImageHTML = "";
            if (localStorage_barracksTrainingList[village.id].length > 0) {
                const img = document.createElement("img");
                img.src = barracksPNG;
                img.width = "45";
                img.title = localStorage_barracksTrainingList[village.id].map(troop => {
                    const timestamp = parseInt(Math.floor(Date.now() / 1000));
                    const timerValue = troop.timestampEnd - timestamp;
                    const isDone = timerValue < 0;

                    if (isDone) return "";
                    return `${troop.name} | ${new Date(timerValue * 1000).toISOString().slice(11, 19)} | ${troop.fin}<br>`;
                }).join("");

                if (img.title !== "") {
                    img.title = img.title + "||";
                    barracksImageHTML = img.outerHTML;
                }
            }

            let stableImageHTML = "";
            if (localStorage_stableTrainingList[village.id].length > 0) {
                const img = document.createElement("img");
                img.src = stablePNG;
                img.width = "45";
                img.title = localStorage_stableTrainingList[village.id].map(troop => {
                    const timestamp = parseInt(Math.floor(Date.now() / 1000));
                    const timerValue = troop.timestampEnd - timestamp;
                    const isDone = timerValue < 0;

                    if (isDone) return "";
                    return `${troop.name} | ${new Date(timerValue * 1000).toISOString().slice(11, 19)} | ${troop.fin}<br>`;
                }).join("");

                if (img.title !== "") {
                    img.title = img.title + "||";
                    stableImageHTML = img.outerHTML;
                }
            }

            let workshopImageHTML = "";
            if (localStorage_workshopTrainingList[village.id].length > 0) {
                const img = document.createElement("img");
                img.src = workshopPNG;
                img.width = "45";
                img.title = localStorage_workshopTrainingList[village.id].map(troop => {
                    const timestamp = parseInt(Math.floor(Date.now() / 1000));
                    const timerValue = troop.timestampEnd - timestamp;
                    const isDone = timerValue < 0;

                    if (isDone) return "";
                    return `${troop.name} | ${new Date(timerValue * 1000).toISOString().slice(11, 19)} | ${troop.fin}<br>`;
                }).join("");

                if (img.title !== "") {
                    img.title = img.title + "||";
                    workshopImageHTML = img.outerHTML;
                }
            }

            const troopsHTML = barracksImageHTML + stableImageHTML + workshopImageHTML;

            return `<tr>
                        <td>
                            <a ${activeVillage.id === village.id ? "style=color:black;" : ""} href=${village.href}>${village.name}</a>
                        </td>
                        <td>
                            <ul>
                                ${buildingListHTML}
                            </ul>
                        </td>
                        <td>
                            ${troopsHTML}
                        </td>
                    </tr>`;
        }).join("");

        const villageOverviewHTML = `<div id="us-overview" class="us-draggable" style="top: ${localStorage_villageOverview_coords[0]}px; left: ${localStorage_villageOverview_coords[1]}px;">
                                        <div class="us-overview__header us-draggable--header" style="display: flex; align-items: center;"><div style="flex-grow: 1;">Click here to move</div><div class="us-settingsIconSVG" style="margin-left: 5px; cursor: pointer;"></div></div>
                                        <table>
                                            <thead>
                                                <tr>
                                                    <th>Villages</th>
                                                    <th>Building</th>
                                                    <th>Troops</th>
                                                </tr>
                                            </thead>
                                            <tbody>${tableRowsHTML}</tbody>
                                        </table>
                                    </div>`;

        document.body.insertAdjacentHTML("beforeend", villageOverviewHTML);
        dragElement(document.getElementById("us-overview"), `us_${playerName}_villageOverview_coords`);

        // create settings
        const us_settings = createSettingsHTML();

        const us_settings_icon = document.querySelector("#us-overview .us-settingsIconSVG");
        us_settings_icon.id = "us-settingsIcon";
        us_settings_icon.title = "Userscript Settings ||";
        us_settings_icon.onmousedown = function (e) {
            e.stopPropagation();
        };
        us_settings_icon.onmouseup = function (e) {
            us_settings.classList.toggle("us--display-block");
        };

        const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
        svg.setAttributeNS(null, "fill", "#000000");
        svg.setAttributeNS(null, "viewBox", "0 0 48 48");
        svg.setAttributeNS(null, "width", "20");
        svg.setAttributeNS(null, "heigth", "20");
        const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
        path.setAttributeNS(null, "d", `M39.139,26.282C38.426,25.759,38,24.919,38,24.034s0.426-1.725,1.138-2.247l3.294-2.415	c0.525-0.386,0.742-1.065,0.537-1.684c-0.848-2.548-2.189-4.872-3.987-6.909c-0.433-0.488-1.131-0.642-1.728-0.38l-3.709,1.631	c-0.808,0.356-1.749,0.305-2.516-0.138c-0.766-0.442-1.28-1.23-1.377-2.109l-0.446-4.072c-0.071-0.648-0.553-1.176-1.191-1.307	c-2.597-0.531-5.326-0.54-7.969-0.01c-0.642,0.129-1.125,0.657-1.196,1.308l-0.442,4.046c-0.097,0.88-0.611,1.668-1.379,2.11	c-0.766,0.442-1.704,0.495-2.515,0.138l-3.729-1.64c-0.592-0.262-1.292-0.11-1.725,0.377c-1.804,2.029-3.151,4.35-4.008,6.896	c-0.208,0.618,0.008,1.301,0.535,1.688l3.273,2.4C9.574,22.241,10,23.081,10,23.966s-0.426,1.725-1.138,2.247l-3.294,2.415	c-0.525,0.386-0.742,1.065-0.537,1.684c0.848,2.548,2.189,4.872,3.987,6.909c0.433,0.489,1.133,0.644,1.728,0.38l3.709-1.631	c0.808-0.356,1.748-0.305,2.516,0.138c0.766,0.442,1.28,1.23,1.377,2.109l0.446,4.072c0.071,0.648,0.553,1.176,1.191,1.307	C21.299,43.864,22.649,44,24,44c1.318,0,2.648-0.133,3.953-0.395c0.642-0.129,1.125-0.657,1.196-1.308l0.443-4.046	c0.097-0.88,0.611-1.668,1.379-2.11c0.766-0.441,1.705-0.493,2.515-0.138l3.729,1.64c0.594,0.263,1.292,0.111,1.725-0.377	c1.804-2.029,3.151-4.35,4.008-6.896c0.208-0.618-0.008-1.301-0.535-1.688L39.139,26.282z M24,31c-3.866,0-7-3.134-7-7s3.134-7,7-7	s7,3.134,7,7S27.866,31,24,31z`);

        svg.append(path);
        us_settings_icon.append(svg);
        document.body.append(us_settings);
    }

    /**
     * Create a draggable element that contains Village Resources.
     */
    function createResourcesHTML() {
        /**
         * Update resourcesHTML values.
         */
        function updateResources(localStorage_resources, villageList) {
            villageList.forEach(village => {
                const id = village.id;

                const resources = localStorage_resources[id][0];

                if (resources === undefined) {
                    // document.querySelector(`#us-${id}-l1 .us-bar`).style.width = `${lumberPercent}%`;
                    // document.querySelector(`#us-${id}-l2 .us-bar`).style.width = `${clayPercent}%`;
                    // document.querySelector(`#us-${id}-l3 .us-bar`).style.width = `${ironPercent}%`;
                    // document.querySelector(`#us-${id}-l4 .us-bar`).style.width = `${cropPercent}%`;

                    document.querySelector(`#us-${id}-l1 .us-resourceValue`).textContent = "??";
                    document.querySelector(`#us-${id}-l2 .us-resourceValue`).textContent = "??";
                    document.querySelector(`#us-${id}-l3 .us-resourceValue`).textContent = "??";
                    document.querySelector(`#us-${id}-l4 .us-resourceValue`).textContent = "??";

                    return;
                }

                const lumber = resources.resources.lumber;
                const clay = resources.resources.clay;
                const iron = resources.resources.iron;
                const crop = resources.resources.crop;
                const lumberH = resources.hourlyProduction.lumber;
                const clayH = resources.hourlyProduction.clay;
                const ironH = resources.hourlyProduction.iron;
                const cropH = resources.hourlyProduction.crop;
                const warehouse = resources.storage.warehouse;
                const granary = resources.storage.granary;
                const timestamp = resources.timestamp;

                const currentTimestamp = parseInt(Math.floor(Date.now() / 1000));
                const diffTimestamp = currentTimestamp - timestamp;
                const lumberCalc = (lumberH * diffTimestamp) / 3600;
                const clayCalc = (clayH * diffTimestamp) / 3600;
                const ironCalc = (ironH * diffTimestamp) / 3600;
                const cropCalc = (cropH * diffTimestamp) / 3600;

                const lumberValue = lumber + Math.floor(lumberCalc);
                const clayValue = clay + Math.floor(clayCalc);
                const ironValue = iron + Math.floor(ironCalc);
                const cropValue = crop + Math.floor(cropCalc);

                const lumberPercent = Math.floor((lumberValue * 100) / warehouse);
                const clayPercent = Math.floor((clayValue * 100) / warehouse);
                const ironPercent = Math.floor((ironValue * 100) / warehouse);
                const cropPercent = Math.floor((cropValue * 100) / granary);

                document.querySelector(`#us-${id}-l1 .us-bar`).style.width = `${lumberPercent <= 100 ? lumberPercent : 100}%`;
                document.querySelector(`#us-${id}-l2 .us-bar`).style.width = `${clayPercent <= 100 ? clayPercent : 100}%`;
                document.querySelector(`#us-${id}-l3 .us-bar`).style.width = `${ironPercent <= 100 ? ironPercent : 100}%`;
                document.querySelector(`#us-${id}-l4 .us-bar`).style.width = `${cropPercent <= 100 ? cropPercent : 100}%`;

                document.querySelector(`#us-${id}-l1 .us-resourceValue`).textContent = `${lumberValue <= warehouse ? lumberValue : warehouse}`;
                document.querySelector(`#us-${id}-l2 .us-resourceValue`).textContent = `${clayValue <= warehouse ? clayValue : warehouse}`;
                document.querySelector(`#us-${id}-l3 .us-resourceValue`).textContent = `${ironValue <= warehouse ? ironValue : warehouse}`;
                document.querySelector(`#us-${id}-l4 .us-resourceValue`).textContent = `${cropValue <= granary ? cropValue : granary}`;

                if (cropH < 0) {
                    document.querySelector(`#us-${id}-l4 .us-resourceValue`).classList.add("us--text-alert");
                }
            });
        }

        const playerName = getPlayerName();
        const villageList = getVillageList();
        const activeVillage = getActiveVillage();
        const localStorageProp = `us_${playerName}_resources_coords`;

        // get draggable element coordinates
        let localStorage_coords = localStorage[localStorageProp];
        if (localStorage_coords === undefined) {
            localStorage_coords = [250, 0]; // top left
            localStorage[localStorageProp] = JSON.stringify(localStorage_coords);
        } else {
            localStorage_coords = JSON.parse(localStorage_coords);
        }
        const top = localStorage_coords[0];
        const left = localStorage_coords[1];

        const localStorage_buildingList = getLocalStorage_buildingList(playerName, villageList);
        const localStorage_resources = getLocalStorage_resources(playerName, villageList);




        // html
        const tableRowsHTML = villageList.map(village => {
            const resources = localStorage_resources[village.id][0];
            let warehouse;
            let granary;

            if (resources === undefined) {
                warehouse = "??";
                granary = "??";
            } else {
                warehouse = resources.storage.warehouse;
                granary = resources.storage.granary;
            }

            return `<tr>
                        <td>
                            <a ${activeVillage.id === village.id ? "style=color:black;" : ""} href=${village.href}>${village.name}</a>
                        </td>
                        <td>
                            <div class="us-resources">
                                <div id="us-${village.id}-l1" class="us-resource" title="${warehouse}||">
                                    <div class="us-resourceValue"></div>
                                    <div class="us-barBox">
                                        <div class="us-bar"></div>
                                    </div>
                                </div>
                                <div id="us-${village.id}-l2" class="us-resource" title="${warehouse}||">
                                    <div class="us-resourceValue"></div>
                                    <div class="us-barBox">
                                        <div class="us-bar"></div>
                                    </div>
                                </div>
                                <div id="us-${village.id}-l3" class="us-resource" title="${warehouse}||">
                                    <div class="us-resourceValue"></div>
                                    <div class="us-barBox">
                                        <div class="us-bar"></div>
                                    </div>
                                </div>
                                <div id="us-${village.id}-l4" class="us-resource" title="${granary}||">
                                    <div class="us-resourceValue"></div>
                                    <div class="us-barBox">
                                        <div class="us-bar"></div>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>`;
        }).join("");

        const html = `<div id="us-resources" class="us-draggable" style="top:${top}px; left:${left}px;">
                            <div class="us-resources__header us-draggable--header">Click here to move</div>
                            <table>
                                <thead>
                                    <tr>
                                        <th>Villages</th>
                                        <th>Resources (not 100% accurate)</th>
                                    </tr>
                                </thead>
                                <tbody>${tableRowsHTML}</tbody>
                            </table>
                        </div>`;

        document.body.insertAdjacentHTML("beforeend", html);
        dragElement(document.getElementById("us-resources"), localStorageProp);
        updateResources(localStorage_resources, villageList);

        setInterval(() => {
            updateResources(localStorage_resources, villageList);
        }, 1000);
    }

    /**
     * Create a icon on the map toolbar that can create a semi larger map (a bit like the travian plus larger map feature).
     */
    function createSemiLargerMapHTML() {
        const div = document.createElement("div");
        div.classList.add("iconButton", "viewFullGold");
        div.title = "Semi Larger map (no plus needed) ||";
        div.open = false;

        const mapToolbar = document.querySelector("#toolbar > div.ml > div > div > div.contents");
        const iconCropFinder = document.querySelector("#iconCropfinder");


        div.onclick = function () {
            const map1 = document.querySelector("#mapContainer > div:nth-child(1)");
            const map2 = document.querySelector("#mapContainer > div:nth-child(1) > div:nth-child(2)");
            const elements = [
                document.querySelector("#topBar"),
                document.querySelector("#topBarHeroWrapper"),
                document.querySelector("#header"),
                document.querySelector("#servertime"),
                document.querySelector("#sidebarBeforeContent"),
                document.querySelector("#sidebarAfterContent"),
                document.querySelector("#mapContainer > div.ruler.x"),
                document.querySelector("#mapContainer > div.ruler.y"),
                document.querySelector("#us-overview"),
                document.querySelector("#us-resources")

            ];

            if (this.open) {
                elements.forEach(el => {
                    el.style.visibility = "";
                });

                map1.style.overflow = "hidden";
                map2.classList.remove("us-map-open");

                this.open = false;
                return;
            }

            elements.forEach(el => {
                el.style.visibility = "hidden";
            });

            map1.style.overflow = "unset";
            map2.classList.add("us-map-open");

            this.open = true;
        };

        mapToolbar.insertBefore(div, iconCropFinder);
    }

    /**
     * Create settings container.
     */
    function createSettingsHTML() {
        const us_settings = document.createElement("div");
        us_settings.id = "us-settings";
        us_settings.style = "position: absolute; top: 10px; left: 50%; transform: translate(-50%, 0); z-index: 999; background-color: #D2BDA1;";
        us_settings.style.minWidth = "600px";
        us_settings.style.display = "none";

        const html = `<div style="background-color: #FFFFFF; margin: 10px; padding: 10px;">
            <div>
                <div style="background: #E0EBDF; border-radius: 7px; padding: 5px;"><strong>Settings</strong></div>
                <div>
                    <ul>
                        <li style="margin-bottom: 10px;"><strong><a onclick="this.preventDefault;localStorage.clear();location.reload();">Clear Data</a></strong></li>
                    </ul>
                </div>
            </div> 
            <div>
                <div style="background: #E0EBDF; border-radius: 7px; padding: 5px;"><strong>Features</strong></div>
                <div>
                    <ul>
                        <li style="margin-bottom: 10px;">
                            <a href="https://greasyfork.org/zh-CN/scripts/463332-travianhelper-travian-legends" target="_blank">Features</a>
                        </li>
                    </ul>
                </div>
            </div>
            <div>
                <div style="background: #E0EBDF; border-radius: 7px; padding: 5px;"><strong>Script Info</strong></div>
                <div>
                    <ul>
                        <li style="margin-bottom: 10px;"><strong>Name:</strong> TravianHelper(Travian Legends++)</li>
                        <li style="margin-bottom: 10px;"><strong>Version:</strong> ${myVersion}</li>
                        <li style="margin-bottom: 10px;"><strong>Author:</strong> bingkx & SkillsBoY</li>
                        <li style="margin-bottom: 10px;"><strong>Want new features?</strong> <a href="https://greasyfork.org/zh-CN/scripts/463332-travianhelper-travian-legends/feedback" target="_blank">Feedback</a></li>
                    </ul>
                </div>
            </div>  
            <div style="text-align: center; cursor: pointer;" onclick="document.querySelector('#us-settings').classList.toggle('us--display-block');"><strong>CLOSE</strong></div>         
        </div>`;

        us_settings.insertAdjacentHTML("beforeend", html);

        return us_settings;
    }



}

// utilities
{
    /**
     * Make an element draggable
     */
    function dragElement(elmnt, localStorageProp) {
        var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;

        elmnt.querySelector(`.${elmnt.id}__header`).onmousedown = dragMouseDown;

        function dragMouseDown(e) {
            e = e || window.event;
            e.preventDefault();
            // get the mouse cursor position at startup:
            pos3 = e.clientX;
            pos4 = e.clientY;
            document.onmouseup = closeDragElement;
            // call a function whenever the cursor moves:
            document.onmousemove = elementDrag;
        }

        function elementDrag(e) {
            e = e || window.event;
            e.preventDefault();
            // calculate the new cursor position:
            pos1 = pos3 - e.clientX;
            pos2 = pos4 - e.clientY;
            pos3 = e.clientX;
            pos4 = e.clientY;
            // set the element's new position:
            elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
            elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
        }

        function closeDragElement() {
            // stop moving when mouse button is released:
            document.onmouseup = null;
            document.onmousemove = null;

            if (elmnt.offsetLeft + elmnt.offsetWidth <= 50) {
                elmnt.style.left = 50 - elmnt.offsetWidth + "px";
            }

            if (elmnt.offsetTop < 0) {
                elmnt.style.top = "0";
            }

            if (localStorageProp !== undefined) {
                localStorage[localStorageProp] = JSON.stringify([elmnt.offsetTop, elmnt.offsetLeft]);
            }
        }
    }
}

// main code
{
    const playerName = getPlayerName();
    const villageList = getVillageList();
    const activeVillage = getActiveVillage();
    const resources = getResources();
    const storage = getStorage();
    const hourlyProduction = getHourlyProduction();
    const timestamp = parseInt(Math.floor(Date.now() / 1000));

    const resourceData = [{
        resources,
        storage,
        hourlyProduction,
        timestamp
    }];

    const localStorage_buildingList = getLocalStorage_buildingList(playerName, villageList);
    const localStorage_barracksTrainingList = getLocalStorage_barracksTrainingList(playerName, villageList);
    const localStorage_stableTrainingList = getLocalStorage_stableTrainingList(playerName, villageList);
    const localStorage_workshopTrainingList = getLocalStorage_workshopTrainingList(playerName, villageList);
    const localStorage_resources = getLocalStorage_resources(playerName, villageList);

    // if current page is dorf1.php or dorf2.php
    if (/dorf1.php|dorf2.php/.test(window.location.pathname)) {
        const buildingList = getBuildingList();
        setLocalStorage_buildingList(playerName, activeVillage.id, localStorage_buildingList, buildingList);
    }

    // if current page is dorf1.php
    if (/dorf1.php/.test(window.location.pathname)) {

    }

    // if current building is gid=17 (marketplace) or gid=16 (rally point)
    if (/gid=17|gid=16/.test(window.location.search)) {
        coordsClickFillVillageDestinationFields();
    }

    // if current building is gid=19 (barracks)
    if (/gid=19/.test(window.location.search)) {
        const barracksTrainingList = getBarracksTrainingList();
        setLocalStorage_barracksTrainingList(playerName, activeVillage.id, localStorage_barracksTrainingList, barracksTrainingList);
    }

    // if current building is gid=20 (stable)
    if (/gid=20/.test(window.location.search)) {
        const stableTrainingList = getStableTrainingList();
        setLocalStorage_stableTrainingList(playerName, activeVillage.id, localStorage_stableTrainingList, stableTrainingList);
    }

    // if current building is gid=21 (workshop)
    if (/gid=21/.test(window.location.search)) {
        const workshopTrainingList = getWorkshopTrainingList();
        setLocalStorage_workshopTrainingList(playerName, activeVillage.id, localStorage_workshopTrainingList, workshopTrainingList);
    }

    // if current page is on the map (/karte.php)
    if (/karte.php/.test(window.location.pathname)) {
        createSemiLargerMapHTML();
    }


    setLocalStorage_resources(getPlayerName(), getActiveVillage().id, localStorage_resources, resourceData);

    makeBuildingIconsAvailable();
    createVillageOverviewHTML();
    createResourcesHTML();
}