diff options
author | 2023-04-29 00:18:40 +0200 | |
---|---|---|
committer | 2023-04-28 23:18:40 +0100 | |
commit | 6b852d95793ea0bb9e5c3410b15d7cb1b8644980 (patch) | |
tree | 495f03ac3ceee30c006c9962d0196341f76fed34 /recipes/googleclassroom/webview.js | |
parent | Fix Instagram Direct Messages count (#345) (diff) | |
download | ferdium-recipes-6b852d95793ea0bb9e5c3410b15d7cb1b8644980.tar.gz ferdium-recipes-6b852d95793ea0bb9e5c3410b15d7cb1b8644980.tar.zst ferdium-recipes-6b852d95793ea0bb9e5c3410b15d7cb1b8644980.zip |
Fix Google Classroom landing page (#346)
Diffstat (limited to 'recipes/googleclassroom/webview.js')
-rw-r--r-- | recipes/googleclassroom/webview.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/googleclassroom/webview.js b/recipes/googleclassroom/webview.js index 15ab671..5035417 100644 --- a/recipes/googleclassroom/webview.js +++ b/recipes/googleclassroom/webview.js | |||
@@ -1,4 +1,13 @@ | |||
1 | module.exports = Ferdium => { | 1 | module.exports = Ferdium => { |
2 | // if the user is on googleclassroom landing page, go to the login page. | ||
3 | if ( | ||
4 | location.hostname == 'edu.google.com' && | ||
5 | location.href.includes('workspace-for-education/classroom/') | ||
6 | ) { | ||
7 | location.href = | ||
8 | 'https://accounts.google.com/AccountChooser?continue=https://classroom.google.com/u/0/'; | ||
9 | } | ||
10 | |||
2 | const getMessages = () => { | 11 | const getMessages = () => { |
3 | let homework = 0; | 12 | let homework = 0; |
4 | const upcomingAssignment = document.querySelectorAll('.hrUpcomingAssignmentGroup'); | 13 | const upcomingAssignment = document.querySelectorAll('.hrUpcomingAssignmentGroup'); |