From 425ff34ea0b3db3c3f9ade7dbd57cca40ab84e29 Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Tue, 30 Apr 2024 16:41:36 -0700 Subject: [PATCH] Remove operational hours --- scripts/content.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/scripts/content.js b/scripts/content.js index c4edb66..4911e18 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -393,17 +393,6 @@ async function runner() { return; } - // Check if current time is between 11pm and 9am UTC (4pm - 2am PST) - let now = new Date(); - let currentHourUTC = now.getUTCHours(); - if (currentHourUTC >= 23 || currentHourUTC < 9) { - // Continue running the code - } else { - await chrome.storage.local.set({ "ctx_statusMsg": "not operational hours" }); - isRunning = false; - return; - } - if (isFoundAppointment) { // don't do anything if appointment is found and manual booking is required if (isAppointmentPage()) {