Torn City Chain Watch Alert (enhanced)

Alert when chain timer drops below user-defined threshold and fade the screen red. Toggle support added.

作者
Fu11y
日安装量
0
总安装量
249
评分
1 0 0
版本
1.4
创建于
2023-10-27
更新于
2025-06-15
大小
6.4 KB
许可证
MIT
适用于

Torn City Chain Watch Alert

A Tampermonkey userscript designed for Torn City players. This script allows you to receive an alert when your chain timer drops below a user-defined threshold. Additionally, the screen will flash red continuously to notify you of the approaching deadline. The user can easily set the desired alert threshold using a dropdown menu positioned at the top right corner of the screen.
Features:

User-defined Alert Threshold: A dropdown menu is available at the top right corner, allowing users to set the alert threshold in minutes. Options range from 1 minute to 4.5 minutes.

Persistent Selection: Your last chosen threshold is stored locally, so you don't need to set it every time you visit.

Visual and Auditory Alerts: When the chain timer drops below the user-defined threshold, a browser alert will pop up. Moreover, the screen will now have a red screen fade animation repeating every second.

How to Install:

Install Tampermonkey or a similar userscript manager for your browser.
Click on the script's install button on Greasyfork.
Confirm the installation in Tampermonkey's interface.
Visit Torn City and configure your desired alert threshold using the dropdown menu.

Usage:

After installation, visit Torn City.
At the top right corner of the screen, you'll see a dropdown menu. Choose your desired alert threshold.
Once the chain timer in Torn City drops below this threshold, you'll receive an alert, and the screen will flash red continuously every 2 seconds.

Changelog:

Version 1.1:
Introduced user-defined alert threshold via dropdown.
Continuous red screen flash every 2 seconds when timer is below threshold.

Version 1.2:
Replaced flashing with fade effect for smoother alerting.
Improved UI and selector stability and added 60 and 90 second options to the menu.

Version 1.3:
Added alert toggle: A new checkbox in the UI allows users to enable or disable chain alerts without uninstalling or editing the script.
Improved chain detection: Script now ignores chain timer when it displays 00:00, preventing false alerts when no chain is active.
Minor UI enhancements: Improved layout spacing and element grouping for better visibility and interaction.
Refactored logic: Cleaned up alert flow for better performance and reliability.

Version 1.4:
Added "Popup On" toggle to allow disabling the disruptive browser alert.
Screen fading alert now works independently, even with popups off.
User preferences are saved in localStorage for both toggles.
Minor UI layout consistency improvements.

Acknowledgements:

Script Author: Fu11y


Notes:

Respect Torn City's terms of service and guidelines when using this or any other script.
For any issues, suggestions, or feedback, please reach out through Greasyfork's comment section.