Greasy Fork

来自缓存

Greasy Fork is available in English.

FB: Full Timestamps 2019

Shows full timestamps on Facebook posts

< 脚本 FB: Full Timestamps 2019 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2018-08-26

Some tweaks for this script

To get localization on dates: // @require https://momentjs.com/downloads/moment-with-locales.min.js moment.locale(navigator.language || navigator.userLanguage);

Then you need to use moment to parse AM/PM so we don't get null value in output. Since I only want to see date and time I minimized the code to this.

abbr.insertAdjacentHTML('beforeend', '' + ' ' + moment(new Date(abbr.dataset.utime * 1000)).format("LLLL"));

Could probably be tweaked some more ;)

JZersche作者
§
发布于:2018-09-01
编辑于:2018-09-27

Works great! Thank you! This will be added to the next version.

abbr.insertAdjacentHTML('beforeend', '' + 'on ' + moment(new Date(abbr.dataset.utime * 1000)).format('l \at LTS'));

发布留言

登录以发布留言。