Greasy Fork is available in English.

RARBG - convert torrent timestamps to relative format

Converts torrent upload timestamps to relative format

Autor
darkred
Denně instalací
0
Celkem instalací
577
Hodnocení
12 0 0
Verze
2020.11.01
Vytvořeno
21. 07. 2016
Aktualizováno
02. 02. 2021
Licence
MIT
Spustit na
  • /^(https?:)?\/\/(www\.)?(proxy|unblocked)?rarbg((2018|2019|2020|2021)?|access(ed)?|cdn|core|data|enter|get|go|index|mirror(ed)?|p2p|prox(ied|ies|y)|prx|to(r|rrents)?|unblock(ed)?|way|web)\.(to|com|org|is)\/(torrents\.php.*|catalog\/.*|s\/.*|tv\/.*|top10)$/

This script applies to RARBG lists:

  • it converts torrent timestamps to relative format in local timezone. Also, it recalculates them every 1 min.
  • 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. Examples:

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

It uses moment.js.

Screenshot comparison:
Initial:

With the script:

Hosted in GitHub