Advance fixed number of systems on galaxy

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

    • Advance fixed number of systems on galaxy

      Name
      • Info : Advance a fixed number of systems on galaxy page with a button
      • Author : Me
      • Website : No
      • Support : Here (I do need help)
      • Download : I put the code here
        [spoiler=Code]

        Source Code

        1. // ==UserScript==
        2. // @name Galaxy Advance Button
        3. // @include http*.ogame.gameforge.com/game/index.php?page=galaxy*
        4. // @grant none
        5. // ==/UserScript==
        6. var element = document.createElement('div');
        7. element.innerHTML = '<button onclick="system=system<maxSystems-9?parseInt(system)+10:1;loadContent(galaxy,system,true);">Advance ten</button>';
        8. $('#contentWrapper').append(element);
        [/spoiler]
        [spoiler=Old code]

        Source Code

        1. // ==UserScript==
        2. // @name Galaxy Advance Button
        3. // @include http*.ogame.gameforge.com/game/index.php?page=galaxy*
        4. // @grant none
        5. // ==/UserScript==
        6. var element = document.createElement('div');
        7. element.innerHTML = '<button onclick="submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);submitOnKey(39);">Advance ten</button>';
        8. $('#contentWrapper').append(element);
        [/spoiler]
      • Screenshot :
        [spoiler=Image][/spoiler]
      • Browser : Tested on Firefox with Greasemonkey
      • Languages : —

        [spoiler=Description]
        The idea is that I want to advance ten solar systems with a button. I mean, if I'm on 1:1 I would like a button that took me to 1:11 (and 1:21 after hitting again, then 1:31, etc.). This does it although it passes through every system in between, and I don't want that (apart from the fact that may be it's considered an overload on the server). If anyone could help want to suggest something I would appreciate it.
        [/spoiler]

      Tool submitted for toleration by Shole | 14/01/2016