Torn War Timer

Display live ranked war timer in the sidebar using Torn API v2, with smart polling

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
Chris Rockwell
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
30
Βαθμολογίες
0 0 0
Έκδοση
1.2
Δημιουργήθηκε την
04/07/2025
Ενημερώθηκε την
04/07/2025
Μέγεθος
10 KB
Άδεια
MIT
Εφαρμόζεται σε

Adds a RW timer to the Torn Tools section with the OC timer and addiction.
***WILL NOT CREATE TIMER*** if that section does not exist.

On first load it will say "Enter Public Key" and save locally.
It will then show the timer, if your faction is not signed up for a war it will display 0d 0h 0m.
Once the faction has been matched up, it will adjust the timer to the scheduled time and save it to local storage so API does not need to be polled again until the timer is done.
To avoid excessive API calls, if it does not find a war start time it will wait 6 hours then recheck.
To manually check the time there is a "reset" circle that will show up on hover.