diff options
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/whatsapp.tar.gz | bin | 183473 -> 183477 bytes | |||
-rw-r--r-- | uncompressed/whatsapp/index.js | 16 | ||||
-rw-r--r-- | uncompressed/whatsapp/package.json | 2 |
4 files changed, 13 insertions, 7 deletions
@@ -983,7 +983,7 @@ | |||
983 | "featured": false, | 983 | "featured": false, |
984 | "id": "whatsapp", | 984 | "id": "whatsapp", |
985 | "name": "WhatsApp", | 985 | "name": "WhatsApp", |
986 | "version": "2.0.2", | 986 | "version": "2.0.3", |
987 | "icons": { | 987 | "icons": { |
988 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.png", | 988 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.png", |
989 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.svg" | 989 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/whatsapp/icon.svg" |
diff --git a/archives/whatsapp.tar.gz b/archives/whatsapp.tar.gz index a15e4f2..d46f731 100644 --- a/archives/whatsapp.tar.gz +++ b/archives/whatsapp.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/whatsapp/index.js b/uncompressed/whatsapp/index.js index f9b8099..504a70e 100644 --- a/uncompressed/whatsapp/index.js +++ b/uncompressed/whatsapp/index.js | |||
@@ -2,10 +2,16 @@ | |||
2 | 2 | ||
3 | module.exports = (Franz) => | 3 | module.exports = (Franz) => |
4 | class Messenger extends Franz { | 4 | class Messenger extends Franz { |
5 | overrideUserAgent() { | 5 | modifyRequestHeaders() { |
6 | return window.navigator.userAgent.replace( | 6 | return [ |
7 | /(Ferdi|Electron)\/\S+ \([^)]+\)/g, | 7 | { |
8 | "" | 8 | headers: { |
9 | ); | 9 | 'user-agent': window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g,"").trim(), |
10 | }, | ||
11 | requestFilters: { | ||
12 | urls: ['*://*/*'], | ||
13 | } | ||
14 | } | ||
15 | ] | ||
10 | } | 16 | } |
11 | }; | 17 | }; |
diff --git a/uncompressed/whatsapp/package.json b/uncompressed/whatsapp/package.json index 5331ac9..19daf29 100644 --- a/uncompressed/whatsapp/package.json +++ b/uncompressed/whatsapp/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "whatsapp", | 2 | "id": "whatsapp", |
3 | "name": "WhatsApp", | 3 | "name": "WhatsApp", |
4 | "version": "2.0.2", | 4 | "version": "2.0.3", |
5 | "description": "WhatsApp", | 5 | "description": "WhatsApp", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |