diff options
author | 2022-06-29 16:25:18 +0100 | |
---|---|---|
committer | 2022-06-29 21:16:01 +0530 | |
commit | 016e7fe37956b6dec1682d9f4538c48789944613 (patch) | |
tree | ac43119c538364dd15744f27f242b8c834e8f534 /recipes | |
parent | Reverted fb messenger url (#86) (diff) | |
download | ferdium-recipes-016e7fe37956b6dec1682d9f4538c48789944613.tar.gz ferdium-recipes-016e7fe37956b6dec1682d9f4538c48789944613.tar.zst ferdium-recipes-016e7fe37956b6dec1682d9f4538c48789944613.zip |
Hide 'install messenger' button
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/messenger/package.json | 2 | ||||
-rw-r--r-- | recipes/messenger/webview.js | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/recipes/messenger/package.json b/recipes/messenger/package.json index ac854c8..bc46aaf 100644 --- a/recipes/messenger/package.json +++ b/recipes/messenger/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "messenger", | 2 | "id": "messenger", |
3 | "name": "Messenger", | 3 | "name": "Messenger", |
4 | "version": "1.7.0", | 4 | "version": "1.7.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://messenger.com", | 7 | "serviceURL": "https://messenger.com", |
diff --git a/recipes/messenger/webview.js b/recipes/messenger/webview.js index 749bdfd..210e6b5 100644 --- a/recipes/messenger/webview.js +++ b/recipes/messenger/webview.js | |||
@@ -20,8 +20,17 @@ module.exports = Ferdium => { | |||
20 | Ferdium.setBadge(count); | 20 | Ferdium.setBadge(count); |
21 | }; | 21 | }; |
22 | 22 | ||
23 | const hideInstallMessage = () => { | ||
24 | const installMessage = document.querySelector('.usczdcwk'); | ||
25 | if (installMessage.style.display != 'none') { | ||
26 | installMessage.style.display = 'none' | ||
27 | } | ||
28 | } | ||
29 | |||
23 | Ferdium.loop(getMessages); | 30 | Ferdium.loop(getMessages); |
24 | 31 | ||
32 | Ferdium.loop(hideInstallMessage); | ||
33 | |||
25 | localStorage.setItem( | 34 | localStorage.setItem( |
26 | '_cs_desktopNotifsEnabled', | 35 | '_cs_desktopNotifsEnabled', |
27 | JSON.stringify({ | 36 | JSON.stringify({ |