Sonar radar with visible sweep line and flashing enemies
Step 1:Install Tampermonkey
Open your browser (Chrome, Firefox, Edge, or Safari).
Go to the Tampermonkey website: https://www.tampermonkey.net/
Click “Download” for your browser.
Follow the installation prompts to add the Tampermonkey extension.
Step 2:Add a New Userscript
After installing Tampermonkey, click its icon in the browser toolbar.
Select “Dashboard”.
Click the “+” (Add a new script) button.
A new editor tab will open with a template script.
Step 3:Paste Your Script
Delete everything in the editor template.
Copy your radar script (the one we wrote) and paste it into the editor.
Make sure it starts with // ==UserScript== and ends with })();.
Click File → Save (or press Ctrl+S / Cmd+S).
Step 4:Run the Script
Open Powerline.io in a new tab
Tampermonkey will automatically run your script on this website.
You should see a radar in the top-right corner showing nearby players (red dots) and your snake (green dot).
Step 5: Adjust Settings (Optional)
Radar size: Change radar.width and radar.height in the script.
Scale: Adjust const scale = 0.05; to make players appear closer or farther away.
Position: Change radar.style.top or radar.style.right if you want it somewhere else.
Tips
Make sure your browser allows Tampermonkey to run scripts on all sites (or specifically on Powerline.io).
If you don’t see the radar, refresh the page.
You can disable or edit the script anytime through the Tampermonkey dashboard.