From 33f11a6528b5ff82f23838cd21a81a907276d19f Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Wed, 24 Apr 2024 16:33:55 -0700 Subject: [PATCH] Disable autobook after successful reschedule --- scripts/content.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/content.js b/scripts/content.js index 2f22250..115d617 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -502,6 +502,12 @@ async function runner() { config.currentAppt = { consulate: null, date: null}; await chrome.storage.local.set({"__currentAppt": config.currentAppt}); console.log('Rescheduled successfully'); + + // switch off autobook for all consulates after successful reschedule + for (let consulate in config.consulates) { + config.consulates[consulate].autobook = false; + } + window.location = window.location.pathname.replace(/schedule.*/g, ""); await delay(PAGE_WAIT_TIME); }