Genki / Fleet AutoValues

// ==UserScript==
// @name         Fleet AutoValues
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Defines new fleet values using AntiGameReborn for OGame
// @author       Genki
// @include     	*.ogame*gameforge.com/game/index.php*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    //****************************
    // CHANGE THE VALUES YOU WANT

    // Civil ships
    var TransporterSmall = 0; // Petit Transporteur
    var TransporterLarge = 1500; // Grand Transporteur
    var ColonyShip = 0; // Vaisseau de Colonisation
    var Recycler = 0; // Recycleur
    var Probe = 1; // Sonde

    // Battle ships
    var FighterLight = 0; // Chasseur Léger
    var FighterHeavy = 0; // Chasseur Lourd
    var Cruiser = 0; // Croiseur
    var Battleship = 0; // Vaisseau de Bataille
    var Interceptor = 0; // Traqueur
    var Bomber = 1; // Bombardier
    var Destroyer = 1; // Destructeur
    var Deathstar = 0; // EDLM
    var Reaper = 1; // Faucheur
    var Explorer = 1; // Eclaireur

    // DO NOT TOUCH AFTER
    //********************

    // Create the Auto-Select button near API button
    var AutoSelectButton = 'data:image/jpeg;base64,/9j/4QUcRXhpZgAATU0AKgAAAAgADAEAAAMAAAABACAAAAEBAAMAAAABACAAAAECAAMAAAADAAAAngEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAApAEbAAUAAAABAAAArAEoAAMAAAABAAIAAAExAAIAAAAkAAAAtAEyAAIAAAAUAAAA2IdpAAQAAAABAAAA7AAAASQACAAIAAgACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKE1hY2ludG9zaCkAMjAyMDowNDoyNSAyMDoyNzoxOQAABJAAAAcAAAAEMDIyMaABAAMAAAAB//8AAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAFyARsABQAAAAEAAAF6ASgAAwAAAAEAAgAAAgEABAAAAAEAAAGCAgIABAAAAAEAAAOSAAA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ABQZ1BzAAAAAFBnUEMAAAAATGVmdFVudEYjUmx0AAAAAAAAAAAAAAAAVG9wIFVudEYjUmx0AAAAAAAAAAAAAAAAU2NsIFVudEYjUHJjQFkAAAAAAAAAAAAQY3JvcFdoZW5QcmludGluZ2Jvb2wAAAAADmNyb3BSZWN0Qm90dG9tbG9uZwAAAAAAAAAMY3JvcFJlY3RMZWZ0bG9uZwAAAAAAAAANY3JvcFJlY3RSaWdodGxvbmcAAAAAAAAAC2Nyb3BSZWN0VG9wbG9uZwAAAAAAOEJJTQPtAAAAAAAQAEgAAAABAAIASAAAAAEAAjhCSU0EJgAAAAAADgAAAAAAAAAAAAA/gAAAOEJJTQQNAAAAAAAEAAAAWjhCSU0EGQAAAAAABAAAAB44QklNA/MAAAAAAAkAAAAAAAAAAAEAOEJJTScQAAAAAAAKAAEAAAAAAAAAAjhCSU0D9QAAAAAASAAvZmYAAQBsZmYABgAAAAAAAQAvZmYAAQChmZoABgAAAAAAAQAyAAAAAQBaAAAABgAAAAAAAQA1AAAAAQAtAAAABgAAAAAAAThCSU0D+AAAAAAAcAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAA4QklNBAgAAAAAABAAAAABAAACQAAAAkAAAAAAOEJJTQQeAAAAAAAEAAAAADhCSU0EGgAAAAADPQAAAAYAAAAAAAAAAAAAACAAAAAgAAAABAB0AGUAcwB0AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAABAAAAAAAAbnVsbAAAAAIAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21sb25nAAAAIAAAAABSZ2h0bG9uZwAAACAAAAAGc2xpY2VzVmxMcwAAAAFPYmpjAAAAAQAAAAAABXNsa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8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2OTI3MGM1ZS0wM2RhLTQwZTUtODMyOS0xZWNmMWZhYjFkNmUiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDphZDgzYWEzMy1hNDdlLWMyNDItYWFjYS1lMDAwZTg1MDNhZTgiIHN0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo1OTczZmU5Mi00YmU2LTQzODQtYWY0Ni0xZWUxM2EzZjFiZWYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/Pv/iC4RJQ0NfUFJPRklMRQABAQAAC3RhcHBsAhAAAG1udHJSR0IgWFlaIAfiAAoACgASABQAJ2Fjc3BBUFBMAAAAAEFQUEwAAAAAAAAAAAAAAAAAAAABAAD21gABAAAAANMtYXBwbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEWRlc2MAAAFQAAAAc2RzY20AAAHEAAAATGNwcnQAAAIQAAAAI3d0cHQAAAI0AAAAFHJYWVoAAAJIAAAAFGdYWVoAAAJcAAAAFGJYWVoAAAJwAAAAFHJUUkMAAAKEAAAIDGFhcmcAAAqQAAAAIHZjZ3QAAAqwAAAAMG5kaW4AAArgAAAAPmNoYWQAAAsgAAAALG1tb2QAAAtMAAAAKGJUUkMAAAKEAAAIDGdUUkMAAAKEAAAIDGFhYmcAAAqQAAAAIGFhZ2cAAAqQAAAAIGRlc2MAAAAAAAAAGUJsdWUgZmlsdGVyIC0gVHJ1ZSB3aGl0ZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAbWx1YwAAAAAAAAABAA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cICP/n5/wBvNqaQCA+1qEqfuPbOIOS1X9WJ5ao5F+nLO4yfG9HRaLK0v7EM2uH9BY1RoxcaDEiljyRTxyxGRtRzer2vZ4kVqovd7fW+a2NyYEHqv2qip6s5vReq/Bq9evXuRV7UQdznTdRnxZJbTRjg6dcaypoQESc6+sNUsJ0NHX1bVSWSd8aqqeFjUdLIxq7MrTU4uaq7wHV5riKiXaVlDzNuoqjFsS+JmOtIWrkt5fVU/mjwzOWy9JPC+djJZfKT3Kk50A6roZ8wd+or7ezhtbYISa1rYoRrGyhgAiMMjVOjpGwxK9fl29uPF/F9BLoNVosdXRjDNajBq+BpE0lhd3JiMfFW0dW2TxzkSdGsb06IrntYtx7Y+FP89yV7n93Wgt5q5POrwLcHH+FYThqYEI+Akb14M7GyABPZ+JI1phKOnVkbOLOKuH99ouVNprxLzdbLPaVSqMDHcg2BxC6EltvanTNt/wBhUgCzznNTzXuXoqKqd3uGzGlr5aq/z1AZW29eQ+GUgE0K5rhixZZoJiIHuZKnh/qkkav8l7cYWGI9wgfFXJNNx8TidAyKMiG2EGJMdHbUxwp1PZCdFcHHIxXNVY5mRzRua9rHNMtLTnHOWNnZkzmWB55NwSUcWRKs5BphUlfJPOTPMqOfI5Vc9/eq9ewOizPP1LQXlbJ54FrVG3IFgFKsKwKopAle2aFVY9yK5ET4q359uWcxn+UaXR6rT0S11ZXgLZmWNvYGWQTvJiX0bWq4iRr3uVV7/qrW9f/Z';
    var ButtonsMenu = document.getElementsByClassName("secondcol fleft")[0];
    ButtonsMenu.getElementsByClassName('clearfloat')[0].insertAdjacentHTML('beforebegin', '<div id="AutoSelect" style="background-image: url(\''+AutoSelectButton+'\');display: inline-block; float: right; width: 32px; height: 32px;cursor:pointer;"></div>');
    ButtonsMenu.style.width = "143px";
    document.getElementsByClassName('send_most')[0].getElementsByTagName('a')[0].style.marginRight = "5px";
    document.getElementsByClassName('send_none')[0].style.cssFloat = "left";

    // Click on the blue button on the fleet page
    document.getElementById('AutoSelect').onclick = function() {

        let ships = [
            {id:202,number: TransporterSmall},
            {id:203,number: TransporterLarge},
            {id:208,number: ColonyShip},
            {id:209,number: Recycler},
            {id:210,number: Probe},
            {id:204,number: FighterLight},
            {id:205,number: FighterHeavy},
            {id:206,number: Cruiser},
            {id:207,number: Battleship},
            {id:215,number: Interceptor},
            {id:211,number: Bomber},
            {id:213,number: Destroyer},
            {id:214,number: Deathstar},
            {id:218,number: Reaper},
            {id:219,number: Explorer}
        ];

        fleetDispatcher.shipsToSend = []; // Empty array
        fleetDispatcher.shipsToSend = ships.filter(id => id.number > 0); // Push new values
        fleetDispatcher.refresh(); // Refresh
    };

})();