if you have ever wrangled long URLs, this is an exceptional macOSXhint explaining how to create a service to shorten those multi line URLs – best of all this will work pretty much system wide.
even better when combined with a keyboard shortcut (e.g. ‘control + U’), which you can setup under system preferences > keyboard > keyboard shortcuts > services > internet