Torn Stock Buy/Sell Highlighter (Persistent, Fixed Selector)

Add buy/sell thresholds to Torn stocks in their own column, highlight when matched, values persist after refresh

作者
Domegid
日安装量
0
总安装量
0
评分
0 0 0
版本
1.3
创建于
2025-09-28
更新于
2025-09-28
大小
5.6 KB
许可证
MIT
适用于

Torn Stock Buy/Sell Highlighter

Torn Stock Buy/Sell Highlighter

Author: Domegid [3748830]

Version: 1.1

Namespace: http://tampermonkey.net/

Compatible with: Tampermonkey / Greasemonkey, PC & Mobile browsers

Description


This userscript adds a dedicated column to the Torn City stock market page, allowing users to enter Buy and Sell price thresholds for each stock.
- Stocks are highlighted green if the current price is below your Buy threshold.
- Stocks are highlighted red if the current price is above your Sell threshold.
- Values are persisted across page reloads using localStorage.
- Each stock has a small “Clear” button to reset its own thresholds.


Note: This script only modifies the stock market page UI for easier tracking. It does not interact with Torn’s servers beyond reading displayed prices.

Instructions

  • Install Tampermonkey (or Greasemonkey) in your browser.
  • Create a new userscript and paste the full script code.
  • Navigate to Torn City’s stock page (https://www.torn.com/page.php?sid=stocks).
  • Enter desired Buy and Sell thresholds in the new column next to the Dividend column.
  • Stocks will automatically highlight when thresholds are met.
  • Use the per-stock “Clear” button to reset that stock’s thresholds.

Additional Tips

  • Keep your thresholds reasonable to avoid confusion with extreme price spikes.
  • This script works on both PC and mobile browsers.
  • All values are stored locally; clearing browser storage will remove saved thresholds.
  • Refreshing the page preserves thresholds automatically.

Changelog

  • v1.0: Initial release with persistent Buy/Sell thresholds and per-stock clear buttons.
  • v1.1: Minor improvements for mobile and alignment of thresholds column.

License

MIT License – free to use and modify.