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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Domegid
今日安裝
0
安裝總數
6
評價
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.