Page MenuHomePhabricator

Add mw.hook for when notifications have been shown
Closed, ResolvedPublic


It would be nice if power users could modify their Echo notifications on the client side. For example, the link notification does not link to either of the main pages in question, just Whatlinkshere. Power users may want to add these links.

This is more complicated than a typical user script since the notifications are fetched from the server every time you show the overlay.

Adding a hook for after notifications are shown would provide a user script extensibility point. This should fire after the overlay is built and after Special:Notifications is shown, so both can be tweaked the same way.

mw.hook (!/api/mw.hook) seems like a good tool for this.

Version: master
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:38 AM
bzimport added a project: Notifications.
bzimport set Reference to bz48502.

I added a hook for the overlay at . Since the notifications on Special:Notifications actually have different formatting, that hook should probably be different.