A simple Chrome extension that automatically opens non-GitHub links in new tabs when browsing GitHub.com. This keeps you on GitHub while still allowing you to easily access external resources.
- Only activates on GitHub.com pages
- Automatically opens non-GitHub links in new tabs
- Works with all types of links (absolute, relative, and root-relative)
- No configuration needed - just install and browse GitHub as usual
- Minimal permissions - only requires access to GitHub.com
- Visit the Chrome Web Store
- Click "Add to Chrome"
- Confirm the installation
- Clone or download this repository to your local machine
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" by toggling the switch in the top right corner
- Click "Load unpacked" and select the directory containing the extension files
- The extension should now be installed and visible in your extensions list
- Navigate to any GitHub.com page
- The extension will automatically open any non-GitHub links in new tabs when clicked
- No additional action is needed - just browse GitHub as usual!
The extension detects when you click on a link on GitHub.com. If the link points to a non-GitHub website, it:
- Prevents the default navigation behavior
- Opens the link in a new tab
- Keeps you on the current GitHub page
This is particularly useful when:
- Reading documentation that references external resources
- Following links to related projects or tools
- Accessing external documentation without losing your place on GitHub
This extension:
- Only runs on GitHub.com pages
- Does not collect or transmit any user data
- Requires minimal permissions - only needs access to GitHub.com
- Does not track browsing history or store any data
manifest.json: Extension configurationpopup.html: The extension popup UIpopup.js: JavaScript for the popup functionalitycontent.js: Code that runs on GitHub pagesimages/: Directory containing extension icons
To modify the extension's functionality, edit the content.js file to change how it interacts with GitHub pages.
MIT License - See LICENSE file for details
If you encounter any issues or have suggestions for improvements, please open an issue on GitHub.