question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to hide/show unread notifications dot

See original GitHub issue

Description

Each and every page on GH shows the notifications bell. At times the bell is decorated with a blue dot for unread notifications. This little dot can be very disturbing because I cannot resist to click it, usually distracting me from my work. I would like to take back control and I want to decide when it’s time for notifications.

So the request is simple, add a way to turn off the button and turn it back on, basically run these two lines

// off
document.querySelector('.notification-indicator .mail-status.unread').style.visibility = 'hidden'

// on 
document.querySelector('.notification-indicator .mail-status.unread').style.visibility = ''
Screen Shot 2022-01-05 at 16 36 31

Screenshot

Mockup of a possible UX, have a drop down menu for the bell icon with an entry to mute/unmute notifications

Screen Shot 2022-01-05 at 16 44 13

Example URL

https://github.com/refined-github/refined-github

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
cheap-glitchcommented, Jan 5, 2022

I cannot resist to click it, usually distracting me from my work.

I know that pain… I ended up adding this CSS in the options page:

notification-indicator .unread {
	display: none !important;
}

And I also use the “Notification Preview for GitHub” extension, which shows the unread notifications when hovering on the bell icon.

This setup is not perfect, but it alleviates the problem quite a bit.

1reaction
jriekencommented, Jan 7, 2022

Like @cheap-glitch did, I’d probably add the CSS to the options, although I know this is not the 2-click operation you suggest.

This works great for me (after a day of trying it). I am fine to close this issue as resolved, or trade the 2-click operation with a simple setting to hide/show the notification.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Disable App Icon Badges and Unread Notification ...
Settings –> Search, then find and select "App icon badges." (Android 8–12); Settings –> Home screen. (Android 11–12); Settings –> Display –> ...
Read more >
iOS 15: How to Hide App Notification Badges on the Home ...
1. Open Control Center by swiping down diagonally from the top-right corner of the screen. 2. Tap the Focus button. 3. Tap the...
Read more >
Why There's a Red Dot on Apple Watch and How to Hide It
1. Raise your wrist to wake the Apple Watch screen. 2. Press the Digital Crown on the side of the watch. 3. From...
Read more >
Samsung Galaxy - App Icon Badge SOLUTION!! - YouTube
Is your notification badges or App Icon Badges not working? Here is the solution for you if you have everything turned on.
Read more >
How To Enable Or Disable App Icon Badges On Android
Open the Settings app and go to Apps & Notifications. Tap Notifications and enable or disable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found