Chrome add the http:// when I copy address from addressbar, i often paste the address to console, to ping or ssh, it is possible to copy only hostname from addressbar ? How to switch off that feature in chrome and also in firefox ? I also like solution that will allow to unhide http:// in addressbar, so i can select domain without it.
Where is the answer? The suggestion with Home button doesn't work anymore.
While reading all not working answers (I don't need host? for what? if people copy url, they need full url..:), I made my own solution. Just click to address bar, then hold "Ctrl+Shift", then click "Right" and "Left", Voila. Then you can "Ctrl"+"C"...
You can create a bookmark int the Bookmarks Bar, name it
This is pretty awful that chrome needs it, but you can use this addon to copy the host by clicking a button: http://chrisiona.com/post/122938597943/hostcopy-google-chrome-extension
Warning: Total hack response…
If you highlight the left-most character of the domain name, Chrome automatically adds on the
http:// because its implicit in the address. If you highlight and copy all but the first character, you don't get that issue (and need to re-add it in the command).
However as hacks go, I find it easier to do the above (highlight, Ctrl+C, terminal, type first char, Ctrl+V) than to remove the
Others may have better solutions.
Chrome 83 will be adding the flag chrome://flags/#omnibox-context-menu-show-full-urls
- Go to chrome://flags/#omnibox-context-menu-show-full-urls.
- Click the drop-down menu on the right side of the flag to select 'Enabled'
- Restart the web browser.