Torn City Universal Streak Tracker

A minimalist, TCT-synchronized streak tracker. Works with Public Access API keys. Resets if inactive for 24h.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
PlethoraGaming
日安装量
0
总安装量
1
评分
0 0 0
版本
1.9
创建于
2025-12-25
更新于
2025-12-25
大小
4.3 KB
许可证
MIT
适用于

A minimalist, TCT-synchronized login streak tracker for Home and Inventory. Works with Public Access API keys and resets after 24 hours of inactivity.
​Detailed Description:
This script provides a non-intrusive way to track your daily consistency in Torn City. It is designed to be lightweight and secure, appearing only on your most-visited pages.
​TCT/GMT Synchronized: The streak rollover and inactivity checks are based on Torn City Time (GMT) to ensure accuracy regardless of your local timezone.
​Automatic Reset: The script monitors your "Last Action" via the Torn API. If you have not performed any in-game activity for a full 24-hour window, the streak will reset to 1.
​Secure Public Access: Only requires a Public Access API Key. The script will prompt you for this key on the first run and store it safely in your browser's local storage.
​Discreet UI: A slim, dark-themed HUD element at the top-middle of the screen that blends into the Torn interface.
​How to Modify the Code
​For those who want to customize the script, the code is organized into clear sections:
​Adjusting the "Reset" Window:
Search for hoursSinceActive > 24. You can change 24 to a higher number (like 48) if you want a more lenient streak that allows for a full day off.
​Changing the Visual Theme:
Under streakBox.style, you can edit color: #00ff00; to change the text color (e.g., #ffffff for white or #f2ef11 for Torn yellow). You can also change background: rgba(10, 10, 10, 0.9); to make the box more or less transparent.
​Adding More Pages:
To show the streak on other pages (like the Gym or Faction page), add more @match lines in the metadata header, for example:
// @match https://www.torn.com/gym.php*