aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/instagram/index.js
diff options
context:
space:
mode:
authorLibravatar Amine <amine@mouafik.fr>2020-04-20 09:09:20 +0000
committerLibravatar GitHub <noreply@github.com>2020-04-20 09:09:20 +0000
commit53560dd3d21155285eb2f65b8e1571dbb33b94b1 (patch)
tree101355f0e53bc3bd571f9910db0486c25c307f8c /uncompressed/instagram/index.js
parentRemove WhatsApp reload attempts (#118) (diff)
downloadferdium-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.js9
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
3module.exports = Franz => class Instagram extends Franz { 1module.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};