diff options
author | Amine <amine@mouafik.fr> | 2020-04-20 09:09:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 09:09:20 +0000 |
commit | 53560dd3d21155285eb2f65b8e1571dbb33b94b1 (patch) | |
tree | 101355f0e53bc3bd571f9910db0486c25c307f8c /uncompressed/instagram/index.js | |
parent | Remove WhatsApp reload attempts (#118) (diff) | |
download | ferdium-recipes-53560dd3d21155285eb2f65b8e1571dbb33b94b1.tar.gz ferdium-recipes-53560dd3d21155285eb2f65b8e1571dbb33b94b1.tar.zst ferdium-recipes-53560dd3d21155285eb2f65b8e1571dbb33b94b1.zip |
Update Instagram recipe to use official web service (#111)
* initial commit
# Conflicts:
# README.md
* Adjust recipe to Ferdi
Co-authored-by: Stefan Malzner <stefan@adlk.io>
Diffstat (limited to 'uncompressed/instagram/index.js')
-rw-r--r-- | uncompressed/instagram/index.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/uncompressed/instagram/index.js b/uncompressed/instagram/index.js index b64a3e4..12ff25a 100644 --- a/uncompressed/instagram/index.js +++ b/uncompressed/instagram/index.js | |||
@@ -1,7 +1,8 @@ | |||
1 | 'use strict' | ||
2 | |||
3 | module.exports = Franz => class Instagram extends Franz { | 1 | module.exports = Franz => class Instagram extends Franz { |
4 | overrideUserAgent() { | 2 | overrideUserAgent() { |
5 | return 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B137 Safari/601.1' | 3 | return window.navigator.userAgent.replace( |
4 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | ||
5 | "" | ||
6 | ); | ||
6 | } | 7 | } |
7 | } \ No newline at end of file | 8 | }; |