Feature summary (what you would like to be able to do and where):
When viewing any page talk pages, have access to the timestamp of when the user last viewed the page wl_notificationtimestamp. Most logical place is probably mw.user?
Use case(s):
Userscript that marks new content since your last visit, userscript that tells you when you last visited the page.
Benefits:
There's a catch-22 to making an API call for wl_notificationtimestamp. When the user visits a page, wl_notificationtimestamp gets cleared. So the request needs to be made before the user visits the page. Lacking a crystal ball, I can't do that. The current alternative is to track it myself, which requires either using localStorage (which doesn't share across devices/browsers) or writing to a preference every single pageview which is painful, wasteful and a potential source of race conditions (if the user quickly opens multiple pages in tabs conflicts become extremely difficult to avoid)