aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/googleclassroom/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/googleclassroom/webview.js')
-rw-r--r--recipes/googleclassroom/webview.js9
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 @@
1module.exports = Ferdium => { 1module.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');