aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar Tomas Popela <tomas.popela@gmail.com>2020-04-01 08:34:45 +0200
committerLibravatar Tomas Popela <tomas.popela@gmail.com>2020-04-02 12:07:39 +0200
commit143583b74f69bb69ccddb6cb2fa7ae744bc76e72 (patch)
tree906ef68de7101d247c3fafb7369c6288a7e7f911 /uncompressed
parentUpdate recipe_request.md (diff)
downloadferdium-recipes-143583b74f69bb69ccddb6cb2fa7ae744bc76e72.tar.gz
ferdium-recipes-143583b74f69bb69ccddb6cb2fa7ae744bc76e72.tar.zst
ferdium-recipes-143583b74f69bb69ccddb6cb2fa7ae744bc76e72.zip
Don't set Mac UA on Linux for Google services
If we set the Mac UA on Linux, then various shortcuts will change to Mac ones - i.e. Ctrl + K to create a link in GMail will stop work, Ctrl + Enter to send an email in GMail and others. Only set the Mac UA when not running on Linux.
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/gmail/index.js7
-rw-r--r--uncompressed/gmail/package.json2
-rw-r--r--uncompressed/googlecalendar/index.js7
-rw-r--r--uncompressed/googlecalendar/package.json4
-rw-r--r--uncompressed/googledrive/index.js7
-rw-r--r--uncompressed/googledrive/package.json4
-rw-r--r--uncompressed/googlekeep/index.js7
-rw-r--r--uncompressed/googlekeep/package.json2
-rw-r--r--uncompressed/googlemeet/index.js7
-rw-r--r--uncompressed/googlemeet/package.json2
-rw-r--r--uncompressed/hangouts/index.js7
-rw-r--r--uncompressed/hangouts/package.json2
-rw-r--r--uncompressed/hangoutschat/index.js7
-rw-r--r--uncompressed/hangoutschat/package.json2
14 files changed, 51 insertions, 16 deletions
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js
index 97c6a73..4087aa3 100644
--- a/uncompressed/gmail/index.js
+++ b/uncompressed/gmail/index.js
@@ -1,6 +1,11 @@
1var os = require('os')
2
1module.exports = Franz => 3module.exports = Franz =>
2 class Gmail extends Franz { 4 class Gmail extends Franz {
3 overrideUserAgent() { 5 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 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";
5 } 10 }
6 }; 11 };
diff --git a/uncompressed/gmail/package.json b/uncompressed/gmail/package.json
index daac7a3..d7191e9 100644
--- a/uncompressed/gmail/package.json
+++ b/uncompressed/gmail/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "gmail", 2 "id": "gmail",
3 "name": "Gmail", 3 "name": "Gmail",
4 "version": "1.3.0", 4 "version": "1.3.1",
5 "description": "Gmail", 5 "description": "Gmail",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>", 7 "author": "Stefan Malzner <stefan@adlk.io>",
diff --git a/uncompressed/googlecalendar/index.js b/uncompressed/googlecalendar/index.js
index 5416ca3..401a28f 100644
--- a/uncompressed/googlecalendar/index.js
+++ b/uncompressed/googlecalendar/index.js
@@ -1,6 +1,11 @@
1var os = require('os')
2
1module.exports = Franz => 3module.exports = Franz =>
2 class googlecalendar extends Franz { 4 class googlecalendar extends Franz {
3 overrideUserAgent() { 5 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 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";
5 } 10 }
6 }; 11 };
diff --git a/uncompressed/googlecalendar/package.json b/uncompressed/googlecalendar/package.json
index 3a5a17b..95d4e1c 100644
--- a/uncompressed/googlecalendar/package.json
+++ b/uncompressed/googlecalendar/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googlecalendar", 2 "id": "googlecalendar",
3 "name": "Google Calendar", 3 "name": "Google Calendar",
4 "version": "1.0.2", 4 "version": "1.0.3",
5 "description": "Google Calendar", 5 "description": "Google Calendar",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Rico Herwig <rherwig4711@gmail.com>", 7 "author": "Rico Herwig <rherwig4711@gmail.com>",
@@ -12,4 +12,4 @@
12 "hasDirectMessages": true, 12 "hasDirectMessages": true,
13 "openDevTools": true 13 "openDevTools": true
14 } 14 }
15 } \ No newline at end of file 15 }
diff --git a/uncompressed/googledrive/index.js b/uncompressed/googledrive/index.js
index 3d2e725..9c4da64 100644
--- a/uncompressed/googledrive/index.js
+++ b/uncompressed/googledrive/index.js
@@ -1,6 +1,11 @@
1var os = require('os')
2
1module.exports = Franz => 3module.exports = Franz =>
2 class googledrive extends Franz { 4 class googledrive extends Franz {
3 overrideUserAgent() { 5 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 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";
5 } 10 }
6 }; 11 };
diff --git a/uncompressed/googledrive/package.json b/uncompressed/googledrive/package.json
index f741db5..5b97042 100644
--- a/uncompressed/googledrive/package.json
+++ b/uncompressed/googledrive/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googledrive", 2 "id": "googledrive",
3 "name": "Google Drive", 3 "name": "Google Drive",
4 "version": "1.0.2", 4 "version": "1.0.3",
5 "description": "Google Drive", 5 "description": "Google Drive",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Djonathan Goulart<d.goulart@outlook.com.br>", 7 "author": "Djonathan Goulart<d.goulart@outlook.com.br>",
@@ -22,4 +22,4 @@
22 }, 22 },
23 "openDevTools": false 23 "openDevTools": false
24 } 24 }
25} \ No newline at end of file 25}
diff --git a/uncompressed/googlekeep/index.js b/uncompressed/googlekeep/index.js
index aa0aeeb..96e3615 100644
--- a/uncompressed/googlekeep/index.js
+++ b/uncompressed/googlekeep/index.js
@@ -1,6 +1,11 @@
1var os = require('os')
2
1module.exports = Franz => 3module.exports = Franz =>
2 class googlekeep extends Franz { 4 class googlekeep extends Franz {
3 overrideUserAgent() { 5 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 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";
5 } 10 }
6 }; 11 };
diff --git a/uncompressed/googlekeep/package.json b/uncompressed/googlekeep/package.json
index afc4975..d06fe09 100644
--- a/uncompressed/googlekeep/package.json
+++ b/uncompressed/googlekeep/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googlekeep", 2 "id": "googlekeep",
3 "name": "Google Keep", 3 "name": "Google Keep",
4 "version": "1.0.2", 4 "version": "1.0.3",
5 "description": "Google Keep", 5 "description": "Google Keep",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "SiloCityLabs LLC", 7 "author": "SiloCityLabs LLC",
diff --git a/uncompressed/googlemeet/index.js b/uncompressed/googlemeet/index.js
index 97c6a73..4087aa3 100644
--- a/uncompressed/googlemeet/index.js
+++ b/uncompressed/googlemeet/index.js
@@ -1,6 +1,11 @@
1var os = require('os')
2
1module.exports = Franz => 3module.exports = Franz =>
2 class Gmail extends Franz { 4 class Gmail extends Franz {
3 overrideUserAgent() { 5 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 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";
5 } 10 }
6 }; 11 };
diff --git a/uncompressed/googlemeet/package.json b/uncompressed/googlemeet/package.json
index 1c684db..5428747 100644
--- a/uncompressed/googlemeet/package.json
+++ b/uncompressed/googlemeet/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googlemeet", 2 "id": "googlemeet",
3 "name": "Google Meet", 3 "name": "Google Meet",
4 "version": "1.0.1", 4 "version": "1.0.2",
5 "description": "Google Meet", 5 "description": "Google Meet",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Patrick Thoelken <patrick.thoelken@outlook.com>", 7 "author": "Patrick Thoelken <patrick.thoelken@outlook.com>",
diff --git a/uncompressed/hangouts/index.js b/uncompressed/hangouts/index.js
index d876475..a671025 100644
--- a/uncompressed/hangouts/index.js
+++ b/uncompressed/hangouts/index.js
@@ -1,6 +1,11 @@
1var os = require('os')
2
1module.exports = Franz => 3module.exports = Franz =>
2 class hangouts extends Franz { 4 class hangouts extends Franz {
3 overrideUserAgent() { 5 overrideUserAgent() {
4 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 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";
5 } 10 }
6 }; 11 };
diff --git a/uncompressed/hangouts/package.json b/uncompressed/hangouts/package.json
index c8a3254..f0e0184 100644
--- a/uncompressed/hangouts/package.json
+++ b/uncompressed/hangouts/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "hangouts", 2 "id": "hangouts",
3 "name": "Hangouts", 3 "name": "Hangouts",
4 "version": "1.0.1", 4 "version": "1.0.2",
5 "description": "Hangouts", 5 "description": "Hangouts",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>", 7 "author": "Stefan Malzner <stefan@adlk.io>",
diff --git a/uncompressed/hangoutschat/index.js b/uncompressed/hangoutschat/index.js
index 560a173..95e7fa5 100644
--- a/uncompressed/hangoutschat/index.js
+++ b/uncompressed/hangoutschat/index.js
@@ -1,7 +1,12 @@
1var os = require('os')
2
1// just pass through Franz 3// just pass through Franz
2module.exports = Franz => 4module.exports = Franz =>
3 class HangoutsChat extends Franz { 5 class HangoutsChat extends Franz {
4 overrideUserAgent() { 6 overrideUserAgent() {
5 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; 7 if (os.platform() == 'linux')
8 return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0"
9 else
10 return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0";
6 } 11 }
7 }; 12 };
diff --git a/uncompressed/hangoutschat/package.json b/uncompressed/hangoutschat/package.json
index e7e1ce3..4b69fd3 100644
--- a/uncompressed/hangoutschat/package.json
+++ b/uncompressed/hangoutschat/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "hangoutschat", 2 "id": "hangoutschat",
3 "name": "Hangouts Chat", 3 "name": "Hangouts Chat",
4 "version": "1.2.0", 4 "version": "1.2.1",
5 "description": "Hangouts Chat", 5 "description": "Hangouts Chat",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io> and Iván López (ilopmar)", 7 "author": "Stefan Malzner <stefan@adlk.io> and Iván López (ilopmar)",