TraderSamwise / FTX pnl hider

Published:

Version: 0.1+a13c2e8 updated

Summary: Hide the pnl on the futures page of FTX.com. You MUST refresh the '.../trade/*' path or make it the first page you visit in order to activate the script as FTX uses React virtual router.

License: MIT

NOTE: You MUST refresh upon vising '.../trade/*' or make it the first page you visit at FTX.com in order for the script to activate. This is because FTX uses React and the virtual router, so URLs are only registered on first load by scripts.

Script to hide PNL info on FTX. This is hard to do with CSS alone because FTX uses dynamic class names / IDs (looks like CSS Modules) meaning that any styles you apply to the names on a given page load will likely not apply later on.

This script user a fixed node on the DOM, iterates down the try and dynamically adds the styles to the right nodes. It also adds a listener to the "positions" tab to re-block the PNL when tabbing back over.

Use at your own risk.

Rating: 0