[GH-ISSUE #245] Prefill input via hash route #3031

Closed
opened 2026-04-13 11:33:50 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @jojobii-arks on GitHub (Nov 13, 2023).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/245

Summary

It'd be nice to load up the cobalt.tools site and prefill the text input while navigating.

i.e. https://cobalt.tools/#https://www.youtube.com/watch?v=9R4MtYRk6bA
or via query parameter maybe? https://cobalt.tools/?q=https://www.youtube.com/watch?v=9R4MtYRk6bA

User flow example:

https://github.com/wukko/cobalt/assets/78003700/ac3aa4c7-214b-4669-a13f-c9fe09de1e47

Reason

QoL, faster to use. AFAIK hashes aren't used in the application at all either.
Hashes have easier keystroke than ?u=
This could also be used as a link used to share downloads to files?

Originally created by @jojobii-arks on GitHub (Nov 13, 2023). Original GitHub issue: https://github.com/imputnet/cobalt/issues/245 # Summary It'd be nice to load up the `cobalt.tools` site and prefill the text input while navigating. i.e. `https://cobalt.tools/#https://www.youtube.com/watch?v=9R4MtYRk6bA` ~~or via query parameter maybe? `https://cobalt.tools/?q=https://www.youtube.com/watch?v=9R4MtYRk6bA`~~ ## User flow example: https://github.com/wukko/cobalt/assets/78003700/ac3aa4c7-214b-4669-a13f-c9fe09de1e47 # Reason QoL, faster to use. AFAIK hashes aren't used in the application at all either. Hashes have easier keystroke than `?u=` This could also be used as a link used to share downloads to files?
Author
Owner

@jojobii-arks commented on GitHub (Nov 13, 2023):

NVM this is already implemented through the u query param... I'll just keep this ticket open and implement hash route input since it's an easier keystroke. Feel free to close tho xD

https://github.com/wukko/cobalt/blob/60743cdcdf8c5b6a42cc968b4945ca07f7c71bb7/src/front/cobalt.js#L590-L593

<!-- gh-comment-id:1808778533 --> @jojobii-arks commented on GitHub (Nov 13, 2023): NVM this is already implemented through the `u` query param... I'll just keep this ticket open and implement hash route input since it's an easier keystroke. Feel free to close tho xD https://github.com/wukko/cobalt/blob/60743cdcdf8c5b6a42cc968b4945ca07f7c71bb7/src/front/cobalt.js#L590-L593
Sign in to join this conversation.