diff options
author | 2019-11-28 17:23:07 +0700 | |
---|---|---|
committer | 2019-11-28 17:23:07 +0700 | |
commit | 955ed7e52a7adf56e009a0096186053c185601e2 (patch) | |
tree | fd19c300370ad37e8ffc377ed0eae8bf2b9e3598 | |
parent | Merge pull request #9 from probablykasper/master (diff) | |
parent | Fix gmail.tar.gz conflict (diff) | |
download | ferdium-recipes-955ed7e52a7adf56e009a0096186053c185601e2.tar.gz ferdium-recipes-955ed7e52a7adf56e009a0096186053c185601e2.tar.zst ferdium-recipes-955ed7e52a7adf56e009a0096186053c185601e2.zip |
Override user agent in Gmail recipe (#11)
Override user agent in Gmail recipe
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | gmail.tar.gz | bin | 65326 -> 65083 bytes | |||
-rw-r--r-- | uncompressed/gmail/index.js | 8 | ||||
-rw-r--r-- | uncompressed/gmail/package.json | 2 |
4 files changed, 8 insertions, 4 deletions
@@ -136,7 +136,7 @@ | |||
136 | "featured": false, | 136 | "featured": false, |
137 | "id": "gmail", | 137 | "id": "gmail", |
138 | "name": "Gmail", | 138 | "name": "Gmail", |
139 | "version": "1.2.0", | 139 | "version": "1.2.1", |
140 | "icons": { | 140 | "icons": { |
141 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", | 141 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.png", |
142 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" | 142 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/gmail/icon.svg" |
diff --git a/gmail.tar.gz b/gmail.tar.gz index 40feace..d02bcc5 100644 --- a/gmail.tar.gz +++ b/gmail.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js index 46f936f..e0d8165 100644 --- a/uncompressed/gmail/index.js +++ b/uncompressed/gmail/index.js | |||
@@ -1,2 +1,6 @@ | |||
1 | // just pass through Franz | 1 | module.exports = Franz => |
2 | module.exports = Franz => Franz; | 2 | class Gmail extends Franz { |
3 | overrideUserAgent() { | ||
4 | return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"; | ||
5 | } | ||
6 | }; | ||
diff --git a/uncompressed/gmail/package.json b/uncompressed/gmail/package.json index 7546d19..f95bfbc 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.2.0", | 4 | "version": "1.2.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>", |