Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bromcom VLE to ICS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TheJoeCoder
Bromcom VLE to ICS
Commits
493489f5
Commit
493489f5
authored
Sep 8, 2024
by
TheJoeCoder
Browse files
Options
Downloads
Patches
Plain Diff
Also match azurewebsites domain
parent
d30c3489
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bvletools.user.js
+4
-3
4 additions, 3 deletions
bvletools.user.js
with
4 additions
and
3 deletions
bvletools.user.js
+
4
−
3
View file @
493489f5
// ==UserScript==
// @name Bromcom VLE Tools
// @namespace http://radialbog9.uk/
// @version 2024-0
4-30
// @version 2024-0
9-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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment