FB: Full Timestamps 2019

Shows full timestamps on Facebook posts

< Feedback on FB: Full Timestamps 2019

Review: Good - script works

§
Posted: 2019-04-03

Small error

Could it be possible to have only one date/time format instead of 3 at the same tine ?

I would like to have only the part highlighted in yellow to be visible

Also the "photo.php?...." line should not be there.

Regards !

JZerscheAuthor
§
Posted: 2019-04-05
Edited: 2019-04-05

As stated, the times are adjustable in the script description.

Go in to the TamperMonkey script editor, and locate this line. (It's towards the bottom).

function expandDates(e){for(var t,a=0;t=e[a++];)t.querySelector(".full-timestamp")||t.insertAdjacentHTML("beforeend",'<span class="full-timestamp"> on '+moment(new Date(1e3*t.dataset.utime)).format("l \\at LTS"))}

See where it says l \at LTS? Change that to LTS

function expandDates(e){for(var t,a=0;t=e[a++];)t.querySelector(".full-timestamp")||t.insertAdjacentHTML("beforeend",'<span class="full-timestamp"> on '+moment(new Date(1e3*t.dataset.utime)).format("\\at LTS"))}

As far as removing the extra post data starting with photo.php?

Remove these lines from the code, or comment them out by adding 2 forward slashes to the beginning of them.

//expandPostIDs(document.querySelectorAll('._5pcq')); //setMutationHandler(document, '._5pcq', expandPostIDs);

Available option for times are:

'M/DD/Y \at LTS' ─ 9/01/2018 at 11:57:55 PM 'l \at LTS' ─ 9/1/2018 at 7:39:45 AM 'L \at LTS' ─ 09/07/2018 at 7:39:45 AM

'LT' ─ 8:30 PM 'LTS' ─ 8:30:25 PM 'L' ─ 09/01/2018 'l' ─ 9/1/2018 'LL' ─ September 1, 2018 'll' ─ Sep 1, 2018 'LLL' ─ September 1, 2018 8:30 PM 'lll' ─ Sep 1, 2018 8:30 PM 'LLLL' ─ Thursday, September 1, 2018 8:30 PM 'llll' ─ Thu, Sep 4, 2018 8:30 PM

§
Posted: 2019-04-05

Thanks !

JZerscheAuthor
§
Posted: 2019-04-07

You've also clued me to in to the fact that older posts show the original timestamp, I never noticed. I'll include a way to filter this information out in the next update. Which will also include a new feature as well besides just timestamps. I am continually improving this script.

March 31 at 12:42 PM on 3/31/2019 at 3:42:45 PM AuDwkSiwoZ/posts/2688877641140834 ·

JZerscheAuthor
§
Posted: 2019-04-07
Edited: 2019-04-07

It didn't even take me 30 seconds to resolve that. One additional line added under the GM_addStyle, set timestampContent to display none; and then add a new line. Setting timestampContent hides Facebooks built in display for the time and dates, but leaves my replacement in it's place. Setting livetimestamps .timestampContent to inline block, ensures that recent posts still show the X hr or X min portion of it, so this will eliminate it showing the Date on older posts from Facebook but keep it for recent, e.g. Live posts..

If you don't understand this, just ignore it. It will be in the next update.

'._5ptz.timestamp.livetimestamp .timestampContent {display: inline-block; }' +

GMaddStyle( '.timestampContent {display: none; }' + ' '.5ptz.timestamp.livetimestamp .timestampContent {display: inline-block; }' +' +

);

This is what I did to change it. Older posts aren't going to show two dates now, it will only be one. I'm going to release an update within 5 minutes of this post, be sure to do an update to the script, and all you'll have to do then is comment out the additional features I added for showing the post ID's and so forth. Thanks for cluing me in to this.

//expandPostIDs(document.querySelectorAll('.5pcq')); //setMutationHandler(document, '.5pcq', expandPostIDs);

JZerscheAuthor
§
Posted: 2019-04-07

Next Update coming soon.

Post reply

Sign in to post a reply.