Keybinds for skipping to timestamp (like on YT)
tl;dr: I made a Tampermonkey (a browser extension to locally customize websites) script to add keybinds just like Youtube has it for 0-9 keys on the keyboard to skip between timestamps. Instructions below.
First of all, a little Disclaimer: NEVER install or insert any script anywhere from any untrusted source or if you don't know what the script does! Malicious scripts can potentially leak your personal information, data, passwords, everything to a random place/person. A description of this script for non-coders is written below.
AGAIN: If you are unsure, don't install any of this. Wait for other people's responses/comments or simply ignore it before taking any action.
INSTALL INSTRUCTIONS
- Install Tampermonkey Browser Extension if you haven't already.
- Check if Tampermonkey is running and active as a browser extension (I'm using Chrome). Tampermonkey should be running and be active by default after installation. Open the Extension from anywhere (top right of the browser?) -> find/click "Create a new Script..."
- Here's the Link to jsFiddle with the Javascript. https://jsfiddle.net/0uhbom2y/
- Copy the full Javascript into your new Tampermonkey script. Hit "File" on the top left. Hit "Save". You don't have to make any changes.
- Go to Suno.com and reload the page. Press your Buttons 1-9 and 0 on your Keyboard. Either while playing an audio piece or while it's paused. These keybinds only work while the window AND tab are active.
Have fun!
----
I also wrote this as a feedback report to Suno, but who knows how long it'll take until they implement this feature or even if the consider implementing this.
How i came up with this: I caught myself trying this multiple times as i commonly do when watching youtube videos. It was always annoying to see that this is not a feature on the Suno interface.
I made another little Tampermonkey script to automatically hide the suggested tags from Suno (on old UI / on small window view) after seeing demand for it. You can find it here: https://www.reddit.com/r/SunoAI/comments/1jl81zb/comment/mk4rszt/?context=3
----
What exactly does the script do? (explaination for non-coders)
Whenever you have a tab with https://suno.com open AND active it listens to any keypress. It doesn't recognize keypresses when the tab and window are not active. Yes, it listens to any key, but it only processes further if the keypress matches the 0-9 keys, every other keypress is simply ignored. NOTHING is saved anywhere nor is it sent to anywhere. This is NOT a keylogger. It then looks for the element "active-audio-play", which is the audio player ID. And then sets the timestamp ("currentTime") to the percentage of whatever the full length of the audio track is. Most of it is natively support by your browser anyway, there is no need for complicated tracking/calculation/setting.
Who am i and why i'm doing this? People might be interested, i've been annoyed by the issue and i have 10+ years experience in web dev.
Edit 1 / UPDATE: i had a little typo in the script, which caused it not to load correctly. it's fixed.
Edit 2: Extended script explaination with more details.