aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Korney Czukowski <carbofos@seznam.cz>2024-02-19 22:35:19 +0100
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-02-20 06:46:27 +0000
commit9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50 (patch)
tree8d76f1d02eb3cb2ec12bea05dd573cb11ddebf5a
parentupgrade node to 20.11.1 and other minor versions for pkgs (diff)
downloadferdium-recipes-9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50.tar.gz
ferdium-recipes-9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50.tar.zst
ferdium-recipes-9eb056fbfb1e594da1efb8e7ef6c9040d6b51a50.zip
Ignore 'free trial ending soon' sidebar item
-rw-r--r--recipes/slack/package.json2
-rw-r--r--recipes/slack/webview.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/slack/package.json b/recipes/slack/package.json
index 15138e6..404f6e9 100644
--- a/recipes/slack/package.json
+++ b/recipes/slack/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "slack", 2 "id": "slack",
3 "name": "Slack", 3 "name": "Slack",
4 "version": "1.6.0", 4 "version": "1.6.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.slack.com", 7 "serviceURL": "https://{teamId}.slack.com",
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 =
10module.exports = Ferdium => { 10module.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 -