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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
Domegid
日安装量
0
总安装量
3
评分
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.