Danbooru - Miscellaneous Tweaks

By Mango Last update May 12, 2013 — Installed 38,393 times.

Accurate dates

in
Subscribe to Accurate dates 4 posts, 3 voices



Brisk User
FirefoxWindows

Great script you have, fixes a great many usability issues.
One thing is missing, maybe you could add accurate post dates, such as "2010-01-01" instead of "1 year ago".
The generalized dates used now are very inaccurate, "1 year ago" can mean anywhere between today's date one year ago, and tomorrow's date two years ago.
You can mouse over the hyperlink to see the accurate date, so it shouldn't be hard to change the link text to this.

 
Mango Script's Author
FirefoxWindows

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.

 
uscriMane User
FirefoxWindows

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.

 
Mango Script's Author
FirefoxWindows

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.