diff options
author | 2024-02-19 22:35:19 +0100 | |
---|---|---|
committer | 2024-02-20 06:46:27 +0000 | |
commit | 9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50 (patch) | |
tree | 8d76f1d02eb3cb2ec12bea05dd573cb11ddebf5a /recipes/slack/webview.js | |
parent | upgrade node to 20.11.1 and other minor versions for pkgs (diff) | |
download | ferdium-recipes-9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50.tar.gz ferdium-recipes-9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50.tar.zst ferdium-recipes-9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50.zip |
Ignore 'free trial ending soon' sidebar item
Diffstat (limited to 'recipes/slack/webview.js')
-rw-r--r-- | recipes/slack/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/slack/webview.js b/recipes/slack/webview.js index f6b5af3..d7b4ea0 100644 --- a/recipes/slack/webview.js +++ b/recipes/slack/webview.js | |||
@@ -10,7 +10,7 @@ const SELECTOR_CHANNELS_UNREAD = | |||
10 | module.exports = Ferdium => { | 10 | module.exports = Ferdium => { |
11 | const getMessages = () => { | 11 | const getMessages = () => { |
12 | const directMessages = document.querySelectorAll( | 12 | const directMessages = document.querySelectorAll( |
13 | `${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"]):not([data-sidebar-link-id="Pdms"])`, | 13 | `${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"]):not([data-sidebar-link-id="Pdms"]):not([data-sidebar-link-id="Ppaid-benefits"])`, |
14 | ).length; | 14 | ).length; |
15 | const allMessages = | 15 | const allMessages = |
16 | document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - | 16 | document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - |