From 493489f516d06ed9051e5ac24281b24c4b277383 Mon Sep 17 00:00:00 2001
From: TheJoeCoder <joe@radialbog9.uk>
Date: Sun, 8 Sep 2024 22:10:43 +0100
Subject: [PATCH] Also match azurewebsites domain

---
 bvletools.user.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bvletools.user.js b/bvletools.user.js
index ed8a53c..a5680e5 100644
--- a/bvletools.user.js
+++ b/bvletools.user.js
@@ -1,10 +1,11 @@
 // ==UserScript==
 // @name         Bromcom VLE Tools
 // @namespace    http://radialbog9.uk/
-// @version      2024-04-30
+// @version      2024-09-08
 // @description  Bromcom VLE dashboard widget
 // @author       Radialbog9
 // @match        https://vle.bromcomcloud.com/*
+// @match        https://app-uks-studentportal.azurewebsites.net/*
 // @downloadURL https://git.rb9.xyz/TheJoeCoder/bromcom-vle-to-ics/-/raw/main/bvletools.user.js
 // @updateURL https://git.rb9.xyz/TheJoeCoder/bromcom-vle-to-ics/-/raw/main/bvletools.user.js
 // @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@@ -93,7 +94,7 @@
             var today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
             var lastSunday = new Date(today.setDate(today.getDate()-today.getDay()));
             var nextSaturday = new Date(lastSunday).setDate(lastSunday.getDate() + 6);
-            var url = "https://vle.bromcomcloud.com/Timetable/GetTimeTable?WeekStartDate=" + formatDate(lastSunday) + "&weekEndDate=" + formatDate(nextSaturday) + "&type=1&id=0";
+            var url = "/Timetable/GetTimeTable?WeekStartDate=" + formatDate(lastSunday) + "&weekEndDate=" + formatDate(nextSaturday) + "&type=1&id=0";
             $.ajax({url: url, method: "POST", dataType: "json"})
                 .done((data) => {
                 timetableToClipboardProcess(data);
@@ -105,7 +106,7 @@
             var today = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 7); // Forward 1 week
             var lastSunday = new Date(today.setDate(today.getDate()-today.getDay()));
             var nextSaturday = new Date(lastSunday).setDate(lastSunday.getDate() + 6);
-            var url = "https://vle.bromcomcloud.com/Timetable/GetTimeTable?WeekStartDate=" + formatDate(lastSunday) + "&weekEndDate=" + formatDate(nextSaturday) + "&type=1&id=0";
+            var url = "/Timetable/GetTimeTable?WeekStartDate=" + formatDate(lastSunday) + "&weekEndDate=" + formatDate(nextSaturday) + "&type=1&id=0";
             $.ajax({url: url, method: "POST", dataType: "json"})
                 .done((data) => {
                 timetableToClipboardProcess(data);
-- 
GitLab