by godshatter · 2y ago · 0 comments
I've never understood taking that information away. I wonder if it's a consequence of infinite scroll or something.
javascript:(function () { document.querySelectorAll("relative-time").forEach(function (el) { var p = el.parentNode; var t = el.title; var s = document.createElement("span"); s.innerHTML = t; p.removeChild(el); p.appendChild(s); }); })();
javascript:(()=> {document.querySelectorAll("relative-time").forEach((el)=> el.format="datetime")})()
based on docs at https://github.com/github/relative-time-element
you can also do other formats like
document.querySelectorAll("relative-time").forEach((el)=> {el.format= "datetime"; el.year ="numeric"; el.weekday=undefined;})
it hinders fast viewing of the data, when it is more than a small amount.
For you. For some, you should not need to hover over exact dates to get humanized relative deltas.
It feels like the categories are:
"Today, Yesterday, This Week, This Month, Last Year, Big Bang"
https://addons.mozilla.org/en-US/firefox/addon/yyyy-mm-dd-gi...
I always try to use it when writing HTML.
(https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ti...)
Or, you know the specific day because it was the day after your friends birthday or whatever. And you try to find a specific item, but you have to sift through an entire months of shit because all the information you get is "three months ago".
I agree, they should provide the detailed time, then provide the days ago thing too, if they want to.
- What it says: 1 year ago
- What it is: 1 year and 10 months ago