Spiohelper - add Sim-button

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Spiohelper - add Sim-button

      Hello!
      As you know (or dont know) when your reports are rolled nothing happens when you press on coord. It doesnt jump anywhere. If you have a lot of reports it does but you dont understand what report is that you need.




      In 99% cases you need to click on websim button. So to save time I suggest to add that button as here:

    • You can use this script:

      Source Code

      1. // ==UserScript==// @name Teste// @description Teste// @namespace teste// @vOGgame 5.5.9// @version 0.1.0// @grant GM_getValue// @grant GM_setValue// @grant GM_deleteValue// @grant GM_getResourceURL// @grant GM_xmlhttpRequest// @grant GM_log// @include http://*.ogame.*/game/index.php?*page=*// @exclude http://*.ogame.*/game/index.php?*page=combatreport*// ==/UserScript==
      2. (function() { var lastMessageID = 0; setInterval(addOnClickForTrRow, 500); function addOnClickForTrRow() { var array = document.querySelectorAll('tr.row td:nth-child(2) a'); if (array.length == 0) return; for(var i = 0; i < array.length; i++) { array[i].onclick = function () { var messageID = this.href.split('#')[1].substr(2); if (lastMessageID != 0 && messageID != lastMessageID) { document.querySelector('tr#spioDetails_' + lastMessageID).style.display = "none"; } lastMessageID = messageID; document.querySelector('tr#spioDetails_' + messageID).style.display = "table-row"; document.getElementById('TR' + messageID).scrollIntoView(true); }; } }})();


      It was written by my brother what it does is when you click the coordinates it jumps to the message and opens it, if there is 1 message already open it closes it and opens the most recent report you clicked.
      NOTE: For it to work in antigame options>Messages>Hide reports below limits or hide details, you must select hide all.