// ==UserScript== // @name Grepolis town-disappear finder // @author Jesse de Gans // @description Find nearby towns that will disappear soon // @include http://*.grepolis.com/game/* // @include https://*.grepolis.com/game/* // @exclude view-source://* // @exclude https://classic.grepolis.com/game/* // @version 2020.05.05 // @grant GM_setValue // @grant GM_getValue // @grant unsafeWindow // @namespace https://greasyfork.org/users/551826 // @downloadURL none // ==/UserScript== (function() { var doc = document.getElementById('ui_box'); //str = ''; var str ='' doc.insertAdjacentHTML( 'beforeend', str ); //showiets const el = document.getElementById("showiets"); el.addEventListener("click", (function(){showCityFinderWindow();}), false); var script = document.createElement('script'); script.type = "text/javascript"; script.src='https://rawcdn.githack.com/jessedegans/GrepolisCityDisappearScript/41d3a90e704805dca91ead4aa069dece92422c14/main.min.js'; //document.getElementsByTagName('body')[0].appendChild(script); document.body.appendChild( script ); })();