您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Converts age in days to years, months, and days format with enhanced styling on Torn.com.
当前为
The Age Converter is a lightweight userscript designed for Torn.com players. It converts the in-game account age (displayed in days) into a more user-friendly format of years, months, and days. The converted age is displayed elegantly beneath the existing age box, giving you a clearer picture of how long your Torn account has been active.
This script requires a Public Access API key from Torn to fetch your profile details and calculate the account age.
When you first install and load the script, it will prompt you to enter your Torn Public API key. This key allows the script to fetch your account’s age directly from the Torn API and display it in a more readable format beneath the in-game age counter.
Instead of seeing Age: 394 days
, you'll see something like:
394 days ➡️ 1 Year, 1 Month, 29 Days
Note: Make sure you choose the Public API level, as it's sufficient for fetching profile information such as your account age.
Install a userscript manager (if you don't have one already):
After installing your preferred userscript manager, click here to install the Age Converter script.
When prompted for your Torn Public API key, enter it into the popup window. Your API key will be securely stored in your browser’s local storage for future use.
If you ever need to change your API key, simply clear the stored key by following these steps:
F12
or Ctrl+Shift+I
).https://www.torn.com
.tornApiKey
entry.Contributions are welcome! If you would like to suggest improvements, feel free to fork the repository and create a pull request.
git checkout -b feature-branch
)git commit -m 'Add some feature'
)git push origin feature-branch
)This project is licensed under the MIT License. Feel free to use, modify, and distribute it as long as proper credit is given.