darkred / Blabbermouth - generate timestamps and add link to the fb comments area

Published:

Version: 2.0+1d42bcd updated

Summary: Generates missing timestamps or converts the existing ones in relative format, and adds link to the fb comments area

Support: https://github.com/darkred/Userscripts/issues

License: MIT

This script applies to blabbermouth.net.

Blabbermouth only displays timestamps in news listings and pages. It doesn't display timestamps in cd/dvd reviews pages.
The script implements that.

In details:

  • in cd/dvd reviews pages:

    It generates timestamps (making use of the existing published_time data from inside the pages, e.g. 2020-02-20T19:10:22.000Z)

to relative format in local timezone. Also, it recalculates them every 1 minute.

It also shows a link to the Facebook comments next to the generated timestamp,
with the comment count from that fb iframe 1 (i.e. 6 Comments, not just "Comments" ).

  • in news pages and listings:

    it converts the existing timestamps to releative format.

 

1 Compatibility note regarding that feature:

  • Violentmonkey: the script works in ok with default VM settings.
  • Tampermonkey: *://www.facebook.com/plugins/* is blacklisted in TM by default. in order the script to work, you have to remove that pattern from TM blacklist.
  • Greasemonkey: not supported.

Credits to Brock Adams for his answer to the StackOverflow question: How can two instances of a userscript communicate between frames?


The script uses moment.js, moment-timezone.js and jsTimezoneDetect

Hosted in GitHub

Rating: 0