From 143583b74f69bb69ccddb6cb2fa7ae744bc76e72 Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Wed, 1 Apr 2020 08:34:45 +0200 Subject: 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. --- all.json | 14 +++++++------- archives/gmail.tar.gz | Bin 65202 -> 65243 bytes archives/googlecalendar.tar.gz | Bin 99608 -> 99400 bytes archives/googledrive.tar.gz | Bin 13726 -> 13569 bytes archives/googlekeep.tar.gz | Bin 10645 -> 10712 bytes archives/googlemeet.tar.gz | Bin 93860 -> 93911 bytes archives/hangouts.tar.gz | Bin 61018 -> 60786 bytes archives/hangoutschat.tar.gz | Bin 10451 -> 10244 bytes uncompressed/gmail/index.js | 7 ++++++- uncompressed/gmail/package.json | 2 +- uncompressed/googlecalendar/index.js | 7 ++++++- uncompressed/googlecalendar/package.json | 4 ++-- uncompressed/googledrive/index.js | 7 ++++++- uncompressed/googledrive/package.json | 4 ++-- uncompressed/googlekeep/index.js | 7 ++++++- uncompressed/googlekeep/package.json | 2 +- uncompressed/googlemeet/index.js | 7 ++++++- uncompressed/googlemeet/package.json | 2 +- uncompressed/hangouts/index.js | 7 ++++++- uncompressed/hangouts/package.json | 2 +- uncompressed/hangoutschat/index.js | 7 ++++++- uncompressed/hangoutschat/package.json | 2 +- 22 files changed, 58 insertions(+), 23 deletions(-) diff --git a/all.json b/all.json index 0355f31..65b5d4e 100644 --- a/all.json +++ b/all.json @@ -235,7 +235,7 @@ "featured": false, "id": "gmail", "name": "Gmail", - "version": "1.3.0", + "version": "1.3.1", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" @@ -246,7 +246,7 @@ "featured": false, "id": "googlecalendar", "name": "Google Calendar", - "version": "1.0.2", + "version": "1.0.3", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlecalendar/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlecalendar/icon.svg" @@ -257,7 +257,7 @@ "featured": false, "id": "googledrive", "name": "Google Drive", - "version": "1.0.2", + "version": "1.0.3", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googledrive/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googledrive/icon.svg" @@ -268,7 +268,7 @@ "featured": false, "id": "googlekeep", "name": "Google Keep", - "version": "1.0.2", + "version": "1.0.3", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlekeep/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlekeep/icon.svg" @@ -279,7 +279,7 @@ "featured": false, "id": "googlemeet", "name": "Google Meet", - "version": "1.0.1", + "version": "1.0.2", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/googlemeet/icon.svg" @@ -334,7 +334,7 @@ "featured": false, "id": "hangouts", "name": "Hangouts", - "version": "1.0.1", + "version": "1.0.2", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangouts/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangouts/icon.svg" @@ -345,7 +345,7 @@ "featured": false, "id": "hangoutschat", "name": "Hangouts Chat", - "version": "1.2.0", + "version": "1.2.1", "icons": { "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangoutschat/icon.png", "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/hangoutschat/icon.svg" diff --git a/archives/gmail.tar.gz b/archives/gmail.tar.gz index beefa09..59b6eed 100644 Binary files a/archives/gmail.tar.gz and b/archives/gmail.tar.gz differ diff --git a/archives/googlecalendar.tar.gz b/archives/googlecalendar.tar.gz index f9fe9b6..7482611 100644 Binary files a/archives/googlecalendar.tar.gz and b/archives/googlecalendar.tar.gz differ diff --git a/archives/googledrive.tar.gz b/archives/googledrive.tar.gz index 59dbdac..9f24b28 100644 Binary files a/archives/googledrive.tar.gz and b/archives/googledrive.tar.gz differ diff --git a/archives/googlekeep.tar.gz b/archives/googlekeep.tar.gz index 52a5e76..2eae770 100644 Binary files a/archives/googlekeep.tar.gz and b/archives/googlekeep.tar.gz differ diff --git a/archives/googlemeet.tar.gz b/archives/googlemeet.tar.gz index 2a0574b..dac4bbe 100644 Binary files a/archives/googlemeet.tar.gz and b/archives/googlemeet.tar.gz differ diff --git a/archives/hangouts.tar.gz b/archives/hangouts.tar.gz index 5e357a7..8ae4470 100644 Binary files a/archives/hangouts.tar.gz and b/archives/hangouts.tar.gz differ diff --git a/archives/hangoutschat.tar.gz b/archives/hangoutschat.tar.gz index 797352b..609643e 100644 Binary files a/archives/hangoutschat.tar.gz and b/archives/hangoutschat.tar.gz differ 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 @@ +var os = require('os') + module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "gmail", "name": "Gmail", - "version": "1.3.0", + "version": "1.3.1", "description": "Gmail", "main": "index.js", "author": "Stefan Malzner ", 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 @@ +var os = require('os') + module.exports = Franz => class googlecalendar extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "googlecalendar", "name": "Google Calendar", - "version": "1.0.2", + "version": "1.0.3", "description": "Google Calendar", "main": "index.js", "author": "Rico Herwig ", @@ -12,4 +12,4 @@ "hasDirectMessages": true, "openDevTools": true } - } \ No newline at end of file + } 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 @@ +var os = require('os') + module.exports = Franz => class googledrive extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "googledrive", "name": "Google Drive", - "version": "1.0.2", + "version": "1.0.3", "description": "Google Drive", "main": "index.js", "author": "Djonathan Goulart", @@ -22,4 +22,4 @@ }, "openDevTools": false } -} \ No newline at end of file +} 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 @@ +var os = require('os') + module.exports = Franz => class googlekeep extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "googlekeep", "name": "Google Keep", - "version": "1.0.2", + "version": "1.0.3", "description": "Google Keep", "main": "index.js", "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 @@ +var os = require('os') + module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "googlemeet", "name": "Google Meet", - "version": "1.0.1", + "version": "1.0.2", "description": "Google Meet", "main": "index.js", "author": "Patrick Thoelken ", 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 @@ +var os = require('os') + module.exports = Franz => class hangouts extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "hangouts", "name": "Hangouts", - "version": "1.0.1", + "version": "1.0.2", "description": "Hangouts", "main": "index.js", "author": "Stefan Malzner ", 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 @@ +var os = require('os') + // just pass through Franz module.exports = Franz => class HangoutsChat extends Franz { overrideUserAgent() { - return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; + if (os.platform() == 'linux') + return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + else + return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; } }; 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 @@ { "id": "hangoutschat", "name": "Hangouts Chat", - "version": "1.2.0", + "version": "1.2.1", "description": "Hangouts Chat", "main": "index.js", "author": "Stefan Malzner and Iván López (ilopmar)", -- cgit v1.2.3-70-g09d2