diff options
author | 2020-11-15 13:00:51 -0600 | |
---|---|---|
committer | 2020-11-15 13:00:51 -0600 | |
commit | f1f9a695b68a77625f4abc885e4570eb51331275 (patch) | |
tree | 79a4816d356b225d3e0a75fbaae8959d50bc6d71 /recipes/googleclassroom/index.js | |
parent | Merge pull request #354 from eandersons/nextcloud-talk (diff) | |
download | ferdium-recipes-f1f9a695b68a77625f4abc885e4570eb51331275.tar.gz ferdium-recipes-f1f9a695b68a77625f4abc885e4570eb51331275.tar.zst ferdium-recipes-f1f9a695b68a77625f4abc885e4570eb51331275.zip |
Add Google Classroom recipe
Google Classroom with DarkMode supp
Diffstat (limited to 'recipes/googleclassroom/index.js')
-rw-r--r-- | recipes/googleclassroom/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/googleclassroom/index.js b/recipes/googleclassroom/index.js new file mode 100644 index 0000000..c9bd550 --- /dev/null +++ b/recipes/googleclassroom/index.js | |||
@@ -0,0 +1,11 @@ | |||
1 | var os = require('os') | ||
2 | |||
3 | module.exports = Franz => | ||
4 | class googleclassroom extends Franz { | ||
5 | overrideUserAgent() { | ||
6 | if (os.platform() == 'linux') | ||
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | ||
8 | else | ||
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | ||
10 | } | ||
11 | }; \ No newline at end of file | ||