We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bd88cf commit 990871bCopy full SHA for 990871b
source/features/open-all-notifications.js
@@ -28,9 +28,19 @@ async function openNotifications({delegateTarget}) {
28
action: 'openAllInTabs'
29
});
30
31
- // Mark all as read, this also enables the native "marked as read notification"
32
- for (const button of select.all('.mark-all-as-read', container)) {
33
- button.click();
+ // Mark all as read
+ for (const notification of select.all('.unread', container)) {
+ notification.classList.replace('unread', 'read');
34
+ }
35
+
36
+ // Remove all now-useless buttons
37
+ for (const button of select.all(`
38
+ .rgh-open-notifications-button,
39
+ .open-repo-notifications,
40
+ .mark-all-as-read,
41
+ [href='#mark_as_read_confirm_box']
42
+ `, container)) {
43
+ button.remove();
44
}
45
46
0 commit comments