https://github.com/djadmin/copy-host
Chrome extension to copy hostname of the current tab to your clipboard.
https://github.com/djadmin/copy-host
chrome-extension developer-tools devops
Last synced: 4 months ago
JSON representation
Chrome extension to copy hostname of the current tab to your clipboard.
- Host: GitHub
- URL: https://github.com/djadmin/copy-host
- Owner: djadmin
- License: mit
- Created: 2017-06-10T16:33:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-29T13:18:57.000Z (about 2 years ago)
- Last Synced: 2025-03-26T06:43:16.759Z (10 months ago)
- Topics: chrome-extension, developer-tools, devops
- Language: JavaScript
- Homepage: https://chrome.google.com/webstore/detail/copy-host/bnimbjbohdeakocjbldadiggnlmlgmie
- Size: 282 KB
- Stars: 20
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Copy Host [](https://travis-ci.org/djadmin/copy-host)
Copy Host allows you to copy the hostname of the current tab to your clipboard.
[](https://chrome.google.com/webstore/detail/copy-host/bnimbjbohdeakocjbldadiggnlmlgmie)

## Why?
In some cases, browsers prepend `https://` to the URL when you try to copy it. I constantly copy URLs from the browser to the shell, and it drives me crazy. To avoid that, I built this simple Chrome extension to get only the hostname of the website you are currently browsing. Also, I made it a lot easier to copy the hostname with just a shortcut key, i.e., `Alt + C`.
For example, if you try to copy the URL https://www.google.com from the browser and then try to `ping` using a shell, it doesn't work.
`ping www.google.com` works perfectly and 'Copy Host' makes it easy to do that.
## Installation
Copy Host is available on [Chrome Web Store](https://chrome.google.com/webstore/detail/copy-host/bnimbjbohdeakocjbldadiggnlmlgmie). No additional permissions are required to install.
### Keyboard Shortcut
```Alt + C``` can be used to copy the hostname to your clipboard directly.
### Screenshot

## Development
1. Clone this repo
```git clone https://github.com/djadmin/copy-host```
2. Make your changes.
3. To test, go to: chrome://extensions, enable Developer mode, and load src as an unpacked extension.a
## Contributing
### Todo
* Configurable Keyboard Shortcut
* Option to Disable Popup
### Issues
Feel free to submit issues and feature requests.
### License
Copyright (c) 2024 Dheeraj Joshi
Licensed under the [MIT license](http://opensource.org/licenses/MIT).