Accurate dates
![]() ![]() |
Great script you have, fixes a great many usability issues.
|
![]() ![]() |
But since you can see the exact date with just a mouseover, I don't know if it's worth putting in the script. The required code is
var statPosted = document.evaluate('//div[@id = "stats"]/ul/li[contains(text(),"Posted:")]/a', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if( statPosted ) statPosted.textContent = statPosted.title;
A "2.3 days ago" style might be useful, however. I'll include that in the next update. EDIT: It is done. Change the function call to "precisionTime(-1);" and you'll get your timestamps. |
![]() ![]() |
The new time is fixed to a specific timezone (UTC-5) and will be wrong by up to 23 hours depending on the users timezone. |
![]() ![]() |
Bah. Eastern Time is best time. Daylight Saving Time is giving me a headache--I can't figure out how to handle the general case, what with the different dates and amounts between where Danbooru is and wherever the user is. I'm going to have to assume that the user observes DST the same time/amount that the U.S. east coast does. Further corrections I leave as an exercise for the reader... EDIT: Alright, the 6/21 update has that fix. This might be as good as it gets. |

