diff options
author | Amine Mouafik <amine@mouafik.fr> | 2019-11-27 18:01:43 +0700 |
---|---|---|
committer | Amine Mouafik <amine@mouafik.fr> | 2019-11-27 18:01:43 +0700 |
commit | d7d80c0fbbe440f8f142327474f56c74e2df6c4a (patch) | |
tree | cba8c1f218746f9d86fc2c2ff4586df6ab858583 /uncompressed/gmail | |
parent | Merge branch 'master' of https://github.com/getferdi/recipes (diff) | |
download | ferdium-recipes-d7d80c0fbbe440f8f142327474f56c74e2df6c4a.tar.gz ferdium-recipes-d7d80c0fbbe440f8f142327474f56c74e2df6c4a.tar.zst ferdium-recipes-d7d80c0fbbe440f8f142327474f56c74e2df6c4a.zip |
Override user agent in Gmail recipe
Diffstat (limited to 'uncompressed/gmail')
-rw-r--r-- | uncompressed/gmail/index.js | 9 | ||||
-rw-r--r-- | uncompressed/gmail/package.json | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/uncompressed/gmail/index.js b/uncompressed/gmail/index.js index 46f936f..4e648b3 100644 --- a/uncompressed/gmail/index.js +++ b/uncompressed/gmail/index.js | |||
@@ -1,2 +1,7 @@ | |||
1 | // just pass through Franz | 1 | module.exports = Franz => |
2 | module.exports = Franz => Franz; | 2 | class Instagram extends Franz { |
3 | // Fixes | ||
4 | overrideUserAgent() { | ||
5 | return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"; | ||
6 | } | ||
7 | }; | ||
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>", |