您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlights stocks that meet thresholds for buying and selling.
This script improves the Grundo's Cafe Stock Market experience by making relevant stocks easier to find and manipulate.
It's inspired greatly by the Stock Market Extras userscript, and uses the sortable
library to facilitate sorting functions.
Currently done at the top of the script itself. If there's interest, I'll create a configuration UI - let me know in discord!
BUY_THRESHOLD (integer): The value you want to buy stocks at. Default is 15 NP.
SELL_THRESHOLD (float): The minimum change percentage you want to sell stocks at. Default is 150%.
HIGHLIGHT_COLOUR (string; optional): A hex colour or HTML-safe colour name that is used to highlight stocks above/below. Defaults to something that kind of matches the existing table theme.
1.1.0: If you have dark mode enabled, the default highlight colour will now be something that you can more easily read the grey and white text on. Configuring your own custom colour with the HIGHLIGHT_COLOUR
variable will still take preference either way.
1.0.0: Initial release.