diff --git a/am4.js b/am4.js index e618344..65776af 100644 --- a/am4.js +++ b/am4.js @@ -11,8 +11,8 @@ // noinspection JSUnresolvedFunction // Set the price thresholds under which we buy fuel and CO2 -let fuelPriceThreshold = 550; -let co2PriceThreshold = 125; +let fuelPriceThreshold = 380; +let co2PriceThreshold = 140; var autoDepartTimeoutID; var autoBuyerTimeoutID; @@ -52,6 +52,9 @@ function toggleAutoBuyer() { } } + + + // Auto-depart function autoDepartRoutine() { // Trying to avoid detection @@ -74,9 +77,10 @@ function departAll() { // slight delay to give time for eco-friendly campaign to start setTimeout(function () { const departButton = numberSpan.parentElement; - if (departButton) { - departButton.click(); - } + var buttonforlanded = document.getElementById("flightStatusLanded"); + buttonforlanded.click(); + console.log("clicked button landed") + departButton.click(); }, 1000); } } @@ -242,4 +246,3 @@ function call(url) { } -