From d7d80c0fbbe440f8f142327474f56c74e2df6c4a Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Wed, 27 Nov 2019 18:01:43 +0700 Subject: Override user agent in Gmail recipe --- uncompressed/gmail/index.js | 9 +++++++-- uncompressed/gmail/package.json | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'uncompressed') 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 @@ -// just pass through Franz -module.exports = Franz => Franz; +module.exports = Franz => + class Instagram extends Franz { + // Fixes + overrideUserAgent() { + return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"; + } + }; 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 @@ { "id": "gmail", "name": "Gmail", - "version": "1.2.0", + "version": "1.2.1", "description": "Gmail", "main": "index.js", "author": "Stefan Malzner ", -- cgit v1.2.3-70-g09d2