aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-05-14 16:45:19 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-14 16:49:26 +0530
commit846157ea2b94c9ef82bcd2bd088118036257ea0d (patch)
tree614c108aa5bb237ca8bee420c0e2a2559f126a8d /recipes
parentFixing svg icon for gmail (diff)
downloadferdium-recipes-846157ea2b94c9ef82bcd2bd088118036257ea0d.tar.gz
ferdium-recipes-846157ea2b94c9ef82bcd2bd088118036257ea0d.tar.zst
ferdium-recipes-846157ea2b94c9ef82bcd2bd088118036257ea0d.zip
Fixing issue with non-sso login for all google services not working due to incompatible user-agent/browser version
Diffstat (limited to 'recipes')
-rw-r--r--recipes/googlecalendar/index.js10
-rw-r--r--recipes/googleclassroom/index.js12
-rw-r--r--recipes/googlekeep/index.js10
-rw-r--r--recipes/googlemeet/index.js14
4 files changed, 4 insertions, 42 deletions
diff --git a/recipes/googlecalendar/index.js b/recipes/googlecalendar/index.js
index 401a28f..8019e7a 100644
--- a/recipes/googlecalendar/index.js
+++ b/recipes/googlecalendar/index.js
@@ -1,11 +1,3 @@
1var os = require('os')
2
3module.exports = Franz => 1module.exports = Franz =>
4 class googlecalendar extends Franz { 2 class GoogleCalendar 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 }; 3 };
diff --git a/recipes/googleclassroom/index.js b/recipes/googleclassroom/index.js
index c9bd550..b9fea14 100644
--- a/recipes/googleclassroom/index.js
+++ b/recipes/googleclassroom/index.js
@@ -1,11 +1,3 @@
1var os = require('os')
2
3module.exports = Franz => 1module.exports = Franz =>
4 class googleclassroom extends Franz { 2 class GoogleClassroom extends Franz {
5 overrideUserAgent() { 3 };
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
diff --git a/recipes/googlekeep/index.js b/recipes/googlekeep/index.js
index 96e3615..fb830e3 100644
--- a/recipes/googlekeep/index.js
+++ b/recipes/googlekeep/index.js
@@ -1,11 +1,3 @@
1var os = require('os')
2
3module.exports = Franz => 1module.exports = Franz =>
4 class googlekeep extends Franz { 2 class GoogleKeep 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 }; 3 };
diff --git a/recipes/googlemeet/index.js b/recipes/googlemeet/index.js
index 9d84c17..b20d6be 100644
--- a/recipes/googlemeet/index.js
+++ b/recipes/googlemeet/index.js
@@ -1,17 +1,3 @@
1var os = require('os')
2
3module.exports = Franz => 1module.exports = Franz =>
4 class GoogleMeet extends Franz { 2 class GoogleMeet extends Franz {
5 modifyRequestHeaders() {
6 return [
7 {
8 headers: {
9 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(),
10 },
11 requestFilters: {
12 urls: ['*://*/*'],
13 },
14 },
15 ];
16 }
17 }; 3 };