aboutsummaryrefslogtreecommitdiff
path: root/config/qutebrowser/greasemonkey/slack.js
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2021-09-14 13:34:19 +0530
committerAkshay Nair <phenax5@gmail.com>2021-09-14 13:34:19 +0530
commitf819aa3afea420925fe4c91a71a2756d5ed04b80 (patch)
tree51485da02eda97596faf55aec4881af8134b1e72 /config/qutebrowser/greasemonkey/slack.js
parent994bda7f51d6967087832218d7d3613f37960c9f (diff)
downloadnixos-config-f819aa3afea420925fe4c91a71a2756d5ed04b80.tar.gz
nixos-config-f819aa3afea420925fe4c91a71a2756d5ed04b80.zip
qutebrowser config save
Diffstat (limited to 'config/qutebrowser/greasemonkey/slack.js')
-rw-r--r--config/qutebrowser/greasemonkey/slack.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/qutebrowser/greasemonkey/slack.js b/config/qutebrowser/greasemonkey/slack.js
index b1d6cc4..2f1eeef 100644
--- a/config/qutebrowser/greasemonkey/slack.js
+++ b/config/qutebrowser/greasemonkey/slack.js
@@ -21,13 +21,14 @@ let count = 0;
const timer = setInterval(() => {
const $btns = notificationsButtons();
- console.log('>> Notification buttons', $btns);
+ console.log('>> [GM-N] Notification buttons', $btns);
Array.from($btns)
- .filter($btn => $btn.textContent.match(/enable.*notification/))
+ .filter($btn => $btn.textContent.match(/enable.*notification/gi))
.forEach($btn => {
$btn && $btn.click();
clearInterval(timer);
+ console.log('>> [GM-N] Enabled notifications')
});
if (count > 10) clearInterval(timer);