From 3fa81f2b4b5df7731b9e502327d6ec086d650c6e Mon Sep 17 00:00:00 2001 From: ronan615 <85199004+ronan615@users.noreply.github.com> Date: Sun, 23 Jun 2024 16:51:51 -0400 Subject: [PATCH] Update am4.js --- am4.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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) { } -