darkred / RARBG - convert torrent timestamps to relative format


Version: 2021.11.9+9de585a updated

Summary: Converts torrent upload timestamps to relative format

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

License: MIT

This script applies to RARBG lists:

  • it converts torrent timestamps to relative format in local timezone. Also, it recalculates them every 10 seconds.
  • The initial timestamps are still available as tooltips (on mouse hover), also converted to local timezone.

Note: there's a timestamp on the footer of each RARBG page e.g. Mon, 02 Nov 2020 12:23:26 +0100.
Based on that, the script takes that for the server the UTC/UTC DST offsets are +01:00 +01:00 (=no DST), therefore the timezone in the above case GMT-1.

+01:00 +01:00 (=no DST) ---> 'Etc/GMT-1';
+02:00 +02:00 (=no DST) ---> 'Etc/GMT-2';

It uses moment.js.

Screenshot comparison:

With the script:

Hosted in GitHub

Rating: 0