diff options
Diffstat (limited to 'config/qutebrowser/greasemonkey/slack.js')
| -rw-r--r-- | config/qutebrowser/greasemonkey/slack.js | 5 |
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); |
