Skip to content
Snippets Groups Projects
Commit 493489f5 authored by TheJoeCoder's avatar TheJoeCoder
Browse files

Also match azurewebsites domain

parent d30c3489
No related branches found
No related tags found
No related merge requests found
// ==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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment