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 --- all.json | 2 +- gmail.tar.gz | Bin 65356 -> 65061 bytes uncompressed/gmail/index.js | 9 +++++++-- uncompressed/gmail/package.json | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/all.json b/all.json index 00f02da..dff6b36 100644 --- a/all.json +++ b/all.json @@ -136,7 +136,7 @@ "featured": false, "id": "gmail", "name": "Gmail", - "version": "1.2.0", + "version": "1.2.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" diff --git a/gmail.tar.gz b/gmail.tar.gz index 13eb348..96e6b12 100644 Binary files a/gmail.tar.gz and b/gmail.tar.gz differ 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