Unable to dismiss notifications
-
A couple of days ago, I was bombarded with notifications from the Likes topic. I got so fed up with not being able to keep up that I ignored the forum entirely for about a day and a half. I don't know how many notifications I actually got, since NodeBB stops counting at "99+."
Anyway, I have "99+" unread notifications. If I go to the notification page and click "Mark all notifications read," the red "99+" indicator disappears. However, refresh the page, and it returns. No matter how many times I mark them read, I seem to be permanently stuck with "99+" unread notifications.
Possibly related, scrolling through days worth of notifications (mostly read), interspersed with read notifications from 2, 3, 4 or more days ago are clusters of unread notifications from "1 day ago." It may be that the bug that causes these notifications to appear out of order is the also preventing them from being marked read, but that's pure speculation.
Also, to the individual who generated all those notifications faster than I could dismiss them, . You got me this close to rage quitting.
-
@HardwareGeek said in Unable to dismiss notifications:
Also, to the individual who generated all those notifications faster than I could dismiss them
Ehr, that could have been me, maybe?
I was catching up with some of the early pages and didn't realize that not everyone might have disabled Upvote notifications. Sorry for the distress I may have caused.
-
@JBert There's a few people been catching up, so it's not all your fault ;)
-
@RaceProUK said in Unable to dismiss notifications:
it's not all your fault
They all came from one user, and it wasn't either of you two; it was another guy.
-
@HardwareGeek said in Unable to dismiss notifications:
@RaceProUK said in Unable to dismiss notifications:
it's not all your fault
They all came from one user, and it wasn't either of you two; it was another guy.
Did you mean @anotherusername ?
-
@Tsaukpaetra If I had intended to identify the obnoxious jerk, I would have done so.
-
@HardwareGeek said in Unable to dismiss notifications:
@Tsaukpaetra If I had intended to identify the obnoxious jerk, I would have done so.
Sorry, my humour is kinda dry at times, I meant no offense.
-
@Tsaukpaetra Not offended, just refusing to confirm or deny whether you guessed correctly.
Edit: And I did appreciate the humor.
-
@HardwareGeek said in Unable to dismiss notifications:
@Tsaukpaetra If I had intended to identify the obnoxious jerk, I would have done so.
@morbiuswilters should be a @moderator again.
-
@HardwareGeek it's annoying, and really sucks that you can't fix it.
good news though, notifications are impermanent, they'll eventually delete themselves, in about a week actually (give or take)
@abarker shared a user script that will autodismiss notifications from teh like thread:
// ==UserScript== // @name Clear Like Thread Notifications // @match https://what.thedailywtf.com/* // @grant none // ==/UserScript== (function() { 'use strict'; socket.on('event:new_notification', function (n) { if (/^upvote/.test(n.nid) && n.topicTitle == "The Official Likes Topic") { console.log("Ignoring:", n); socket.emit('notifications.markRead', n.nid, e => e ? console.log(e) : 0); } }); })();
run that in one tab and you never will see a likes thread notification again. then it's just a matter of waiting for the old notifications to age off.
sorry about that.....
-
@HardwareGeek 99+ notifications and a bitch is all of them?
-
@lolwhat said in Unable to dismiss notifications:
@HardwareGeek 99+ notifications and a bitch is all of them?
As a (technical) bitch, i feel that i must at this point assert that i had NOTHING to do with those notifications, and i also really should take offense at the statement....
-
@accalia said in Unable to dismiss notifications:
As a (technical) bitch
:
bitch
is a term used for dogs, of which foxes are not
-
@RaceProUK said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
As a (technical) bitch
:
bitch
is a term used for dogs, of which foxes are notwe are canids just like dogs. if the term can be applied to humans it can be just as aptly applied to foxes, more so as we're closer genetic cousins to dogs than humans are.
-
-
Go to /notifications, scroll down until it stops loading in more notifications, and then run the script from this post:
@anotherusername said in The Official Status Thread:
@Onyx @Tsaukpaetra @Magus @boomzilla @Erufael
Here, I'll help you... go to the "all notifications" view and run this from the JS console.
[...document.querySelectorAll('.notifications-list .unread[data-nid^="upvote"]')].forEach(n => { if (n.querySelector('strong:nth-of-type(2)').innerText == "The Official Likes Topic") { var nid = n.getAttribute('data-nid'), text = n.querySelector('a[component*="link"]').innerText; console.log('Clearing notification:', nid, '\n', text); socket.emit('notifications.markRead', nid, e => e ? console.log(e) : 0); } }); ajaxify.go('/notifications');
That should mark all the Likes thread notifications as read and leave the other ones unread. They may or may not show up in the notifications dropdown then, because sorting is apparently hard.
-
@accalia said in Unable to dismiss notifications:
user script
Unfortunately, I only have access from mobile at the moment. (Filed under: That's different. ) If it's possible to run userscripts on mobile, I don't know how.
-
@anotherusername said in Unable to dismiss notifications:
Go to /notifications, scroll down until it stops loading in more notifications
I'll just build a robot to scroll the page for me. I know it's possible to make synthetic fingers; companies that make touch screens use them for testing. The repetitive swiping motion should be really easy; a simple mechanical motion should suffice.
-
@HardwareGeek said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
user script
Unfortunately, I only have access from mobile at the moment. (Filed under: That's different. ) If it's possible to run userscripts on mobile, I don't know how.
no PC at all? cause even without greasemonkey all you need to do is run that in dev console and walk away.....
-
@accalia I could, but I don't have Chrome running, and I don't feel like waiting for an hour while it chokes trying to open 6467474773 tabs.
-
@HardwareGeek said in Unable to dismiss notifications:
@accalia I could, but I don't have Chrome running, and I don't feel like waiting for an hour while it chokes trying to open 6467474773 tabs.
IE or FF works.
also there are these things called bookmarks.... you might want to look into them.
-
You should disable upvote notifications
Closed as
-
@accalia I don't have FF installed, and IE, <shudder>...
Ok, a workaround for the bug exists. I'm not using the workaround because raisins — maybe valid, maybe just sour grapes. Whatever. None of that changes the fact that NodeBB's handling of notifications is buggy (Chrome's autocomplete suggested "buggered;" that, too) as a summer evening among the mosquitoes of Minnesota.
-
@HardwareGeek said in Unable to dismiss notifications:
maybe valid, maybe just sour grapes
-
@fbmac said in Unable to dismiss notifications:
You should disable upvote notifications
I want upvote notifications from all the other topics. Just not from that topic.
-
@HardwareGeek said in Unable to dismiss notifications:
raisins
-
Alright, here's the new-and-improved script. It doesn't scrape the notification list, it requests it directly, and it hopefully should request the whole damn thing so that it doesn't miss any. Then it marks read any unread upvote notifications from the Likes thread.
(function loadNotifications(start, arr) { socket.emit("notifications.loadMore", {after: start || 0}, (err, obj) => { if (obj.notifications.length) loadNotifications(obj.nextStart, (arr || []).concat(obj.notifications)); else arr.forEach(n => { if (!n.read && n.topicTitle == "The Official Likes Topic" && /^upvote:/.test(n.nid)) { console.log('Clearing notification:', n.nid, '\n', n.bodyShort); socket.emit('notifications.markRead', n.nid, e => e ? console.log(e) : 0); } }); }); })();
(note, the notification counter will probably be off until either a refresh or until a new notification streams in and it updates.)
-
@accalia said in Unable to dismiss notifications:
also there are these things called bookmarks.... you might want to look into them.
Yes, I do know about them. I have many of them. Many more bookmarks than I number of tabs I have open. This, itself, is problematic, as it becomes difficult to find anything useful among 37438489426378438 bookmarks.
If I were to choose an anthropomorphic animal as my avatar, it should almost certainly be a packrat.
-
@HardwareGeek said in Unable to dismiss notifications:
If I were to choose an anthropomorphic animal as my avatar, it should almost certainly be a packrat.
/me looks at hardware geek carefully
Really? You seem more like a cabró to me.
-
@accalia said in Unable to dismiss notifications:
cabró
/me follows second definition
/me quotes for reed-a-billy-tea
A man who knows, condones and even encourages his wife's enjoyment of coitus with another man or men
/me wonders what you're trying to say about @HardwareGeek...
-
@RaceProUK said in Unable to dismiss notifications:
/me wonders what you're trying to say about @HardwareGeek...
70%
20% :srsbzns:
10% :nfc:
-
@accalia said in Unable to dismiss notifications:
cabró
-
@accalia said in Unable to dismiss notifications:
good news though, notifications are impermanent, they'll eventually delete themselves, in about a week actually (give or take)
-
@HardwareGeek said in Unable to dismiss notifications:
@fbmac said in Unable to dismiss notifications:
You should disable upvote notifications
I want upvote notifications from all the other topics. Just not from that topic.
Ignore the topic? Does that still show upvotes?
-
@bb36e said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
good news though, notifications are impermanent, they'll eventually delete themselves, in about a week actually (give or take)
Maybe @fbmac wrote the notifications code?
-
@bb36e said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
good news though, notifications are impermanent, they'll eventually delete themselves, in about a week actually (give or take)
yeah. that was my reaction too.
-
@accalia said in Unable to dismiss notifications:
@bb36e said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
good news though, notifications are impermanent, they'll eventually delete themselves, in about a week actually (give or take)
yeah. that was my reaction too.
It kind of makes sense. Stale notifications aren't as useful. Do you really want an unread notification that your post was liked a month ago?
-
@abarker said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
@bb36e said in Unable to dismiss notifications:
@accalia said in Unable to dismiss notifications:
good news though, notifications are impermanent, they'll eventually delete themselves, in about a week actually (give or take)
yeah. that was my reaction too.
It kind of makes sense. Stale notifications aren't as useful. Do you really want an unread notification that your post was liked a month ago?
not really no, my WTF was that it would eventually delete unread notifications.
-
@loopback0 said in Unable to dismiss notifications:
@HardwareGeek said in Unable to dismiss notifications:
@fbmac said in Unable to dismiss notifications:
You should disable upvote notifications
I want upvote notifications from all the other topics. Just not from that topic.
Ignore the topic? Does that still show upvotes?
Doesn't help. The toaster you get when you ignore a topic explicitly says that you can still get notifications for upvotes or mentions.
-
@HardwareGeek said in Unable to dismiss notifications:
@anotherusername said in Unable to dismiss notifications:
Go to /notifications, scroll down until it stops loading in more notifications
I'll just build a robot to scroll the page for me. I know it's possible to make synthetic fingers; companies that make touch screens use them for testing. The repetitive swiping motion should be really easy; a simple mechanical motion should suffice.
IT-NOTIFICATION-MON-ROBOT
-
@JBert Right, plus I'm already ignoring the Likes topic. If that suppressed the notifications, it wouldn't have been an issue in the first place.
-
@HardwareGeek
Maybe @boomzilla or @ben_lubar could add a " Definetely Muted" status to a thread so that you wouldn't get such notifications...
-
@JBert The PR wasn't accepted from the node devs, but you're welcome to try.
-
@JBert Indeed, that would be the ideal solution. As Dicksores had, two levels of muting: Ignore unless someone specifically mentions me, and As far as I'm concerned, this topic no longer exists.
-
@boomzilla said in Unable to dismiss notifications:
@JBert The PR wasn't accepted from the node devs, but you're welcome to try.
I don't remember, was that to add another level of muting, or to change the effect of the existing Ignore?
-
@HardwareGeek said in Unable to dismiss notifications:
I don't remember, was that to add another level of muting, or to change the effect of the existing Ignore?
It was the current ignore, but it would also suppress notifications. There was no ignore back then.
-
@boomzilla said in Unable to dismiss notifications:
@HardwareGeek said in Unable to dismiss notifications:
I don't remember, was that to add another level of muting, or to change the effect of the existing Ignore?
It was the current ignore, but it would also suppress notifications. There was no ignore back then.
Ah, if I were to wade into the swamp of Node.js, I'd write a PR to add "Completely ignore" as a fourth option. But I don't know JS, and I just might prefer listening to Vogon poetry to learning it.
-
@HardwareGeek The inevitable bikeshedding on the naming of the ignore level makes me yearn for some of that poetry.