cobalt
cobalt copied to clipboard
Search for beginning of URL instead of accepting all text in input as URL
Instead of accepting all input in the text field as the URL, instead do a string search to find the beginning of the URL within the input and take in only the link.
Additional context: TikTok recently changed the way they copy links to your clipboard when you use the sharing feature inside of their app, instead of copying only the link to the clipboard they now copy statistics and tags (e.g. 4M likes, 35.2K comments, Bye bye https://www.tiktok.com/t/ZT8KmUpa7/ instead of just https://www.tiktok.com/t/ZT8KmUpa7/) so to download anything from TikTok correctly you have to paste the clipboard contents somewhere first and copy only the link.