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

(blabbermouth cd/dvd reviews and news pages) generates the missing timestamps or converts the existing ones in relative format, and adds link to the fb comments area

Ajankohdalta 6.3.2020. Katso uusin versio.

Tekijä
darkred
Arvostelut
0 0 0
Versio
1.0.1
Luotu
27.2.2020
Päivitetty
6.3.2020
Lisenssi
MIT
Käytössä

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.

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

Hosted in GitHub