diff options
-rw-r--r-- | all.json | 4 | ||||
-rw-r--r-- | archives/gmail.tar.gz | bin | 65243 -> 65256 bytes | |||
-rw-r--r-- | uncompressed/gmail/index.js | 16 | ||||
-rw-r--r-- | uncompressed/gmail/package.json | 2 |
4 files changed, 14 insertions, 8 deletions
@@ -265,10 +265,10 @@ | |||
265 | }, | 265 | }, |
266 | { | 266 | { |
267 | "author": "Stefan Malzner <stefan@adlk.io>", | 267 | "author": "Stefan Malzner <stefan@adlk.io>", |
268 | "featured": true, | 268 | "featured": false, |
269 | "id": "gmail", | 269 | "id": "gmail", |
270 | "name": "Gmail", | 270 | "name": "Gmail", |
271 | "version": "1.3.1", | 271 | "version": "1.3.3", |
272 | "icons": { | 272 | "icons": { |
273 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", | 273 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", |
274 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" | 274 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" |
diff --git a/archives/gmail.tar.gz b/archives/gmail.tar.gz index 59b6eed..5b73826 100644 --- a/archives/gmail.tar.gz +++ b/archives/gmail.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js index 4087aa3..60f0971 100644 --- a/uncompressed/gmail/index.js +++ b/uncompressed/gmail/index.js | |||
@@ -2,10 +2,16 @@ var os = require('os') | |||
2 | 2 | ||
3 | module.exports = Franz => | 3 | module.exports = Franz => |
4 | class Gmail extends Franz { | 4 | class Gmail extends Franz { |
5 | overrideUserAgent() { | 5 | modifyRequestHeaders() { |
6 | if (os.platform() == 'linux') | 6 | return [ |
7 | return "Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" | 7 | { |
8 | else | 8 | headers: { |
9 | return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0"; | 9 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g,"").trim(), |
10 | }, | ||
11 | requestFilters: { | ||
12 | urls: ['*://*/*'], | ||
13 | } | ||
14 | } | ||
15 | ] | ||
10 | } | 16 | } |
11 | }; | 17 | }; |
diff --git a/uncompressed/gmail/package.json b/uncompressed/gmail/package.json index d7191e9..7e8c9ed 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.1", | 4 | "version": "1.3.3", |
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>", |