From f819aa3afea420925fe4c91a71a2756d5ed04b80 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 14 Sep 2021 13:34:19 +0530 Subject: qutebrowser config save --- config/qutebrowser/greasemonkey/slack.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config/qutebrowser/greasemonkey/slack.js') 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); -- cgit v1.3.1