// ==UserScript== // @name bd level check // @description checks for non max bds // @author Miro // @include https://*.grepolis.com/game/* // @version 2.3.0 // @grant none // @namespace https://greasyfork.org/users/984383 // @downloadURL https://update.greasyfork.icu/scripts/502099/bd%20level%20check.user.js // @updateURL https://update.greasyfork.icu/scripts/502099/bd%20level%20check.meta.js // ==/UserScript== (async function() { // wait for page to load var sleep = (n) => new Promise((res) => setTimeout(res, n)); await sleep(2000) const farmTownRelations = Object.values(MM.getModels().FarmTownPlayerRelation); const allTowns = Object.values(ITowns.getTowns()); const associations = []; bd_check = {}; bd_check.add_data = function() { if (associations.length > 0 && $('#bd_level_check').size() == 0) { let associations_html = ''; for (const association of associations) { associations_html += "