Steam Deck UI Inject
How it works
Are these changes persistent ?
No. Scripts are injected once on startup directly into the browser sessions of the Steam client. If you want to revert, simply disable the devtools-inject service and reboot your Deck.
Is this safe ?
Probably ? Obviously having remote debugging enabled has its own risks, and could in some cases result in leaked steam keys and what not, but then again the -cef-enable-debugging flag by default only allows access from the device itself (not even the local network). This means the device would have to be already compromised to pose any real danger, and by then I’m sure there are bigger problems. At any rate, use at your own risk.
How to use
Run all these in
git clone https://github.com/marios8543/steamdeck-ui-inject.git
sudo cp devtools-inject.service /etc/systemd/system/
sudo systemctl enable --now devtools-inject
Create a new folder in scripts and add a file named main.js
The first line should be a commented-out JSON string with
target_tab parameter and an optional
Preferably, put your code in a self-calling function. Check