{"id":30119662,"url":"https://github.com/sirpooya/chrome-hyperlink-powerups","last_synced_at":"2026-04-18T00:02:22.635Z","repository":{"id":306310224,"uuid":"1025734994","full_name":"sirpooya/chrome-hyperlink-powerups","owner":"sirpooya","description":"Forces all links to open in the same tab. Also lets you select and copy multiple links to the clipboard using a shortcut and drag.","archived":false,"fork":false,"pushed_at":"2025-12-19T07:47:19.000Z","size":10031,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T02:39:27.443Z","etag":null,"topics":["chrome","chrome-extension"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sirpooya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-24T18:01:01.000Z","updated_at":"2025-12-19T07:47:22.000Z","dependencies_parsed_at":"2025-07-25T00:08:12.192Z","dependency_job_id":"e090d8bd-5e63-4fd8-a757-19b1f4931d35","html_url":"https://github.com/sirpooya/chrome-hyperlink-powerups","commit_stats":null,"previous_names":["sirpooya/chrome-link-tab"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sirpooya/chrome-hyperlink-powerups","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirpooya%2Fchrome-hyperlink-powerups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirpooya%2Fchrome-hyperlink-powerups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirpooya%2Fchrome-hyperlink-powerups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirpooya%2Fchrome-hyperlink-powerups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sirpooya","download_url":"https://codeload.github.com/sirpooya/chrome-hyperlink-powerups/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sirpooya%2Fchrome-hyperlink-powerups/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","chrome-extension"],"created_at":"2025-08-10T12:02:56.882Z","updated_at":"2026-04-18T00:02:22.616Z","avatar_url":"https://github.com/sirpooya.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hyperlink Powerups - Chrome Extension\n\nA Chrome extension that forces all links on webpages to open in the same tab instead of new windows or tabs, with additional link selection features.\n\n## Features\n\n- **Same Tab Navigation**: Removes `target=\"_blank\"` and `target=\"_new\"` attributes from all links\n- **Dynamic Content Support**: Handles dynamically added content through MutationObserver\n- **Link Selection**: Select and copy multiple links by dragging your mouse\n\n- **Customizable**: Configure your own link selection key\n- **Works on all websites**: Lightweight and efficient\n\n## Project Structure\n\n```\nchrome-hyperlink-powerups/\n├── manifest.json          # Extension configuration\n├── background.js          # Background service worker\n├── content.js            # Content script\n├── options.html          # Options page\n├── options.js            # Options logic\n├── icons/                # Extension icons\n│   ├── icon16.png\n│   ├── icon48.png\n│   └── icon128.png\n├── package.json          # Project configuration\n└── README.md            # This file\n```\n\n## Installation\n\n### Simple Setup\n\n1. **Clone this repository:**\n   ```bash\n   git clone https://github.com/yourusername/chrome-hyperlink-powerups.git\n   cd chrome-hyperlink-powerups\n   ```\n\n2. **Load the extension in Chrome:**\n   - Open Chrome and navigate to `chrome://extensions/`\n   - Enable \"Developer mode\" in the top right corner\n   - Click \"Load unpacked\" and select this project folder\n   - The extension will be installed and active\n\nThat's it! No build process needed - the extension works directly from the source files.\n\n## Usage\n\n### Basic Functionality\n\nOnce installed, the extension will automatically:\n- Work on all websites you visit\n- Force all links to open in the same tab\n- Show a console message when active\n\n### Link Selection Feature\n\n1. Open the extension options page\n2. Set your custom shortcut key (default: \"Z\")\n3. Hold down your custom key\n4. Click and drag to create a selection box\n5. Release to copy all links in the selected area to clipboard\n\n### Link Selection\n\n- **Custom Key + Drag**: Select and copy multiple links\n\n## Development\n\n### File Structure\n\n- **`manifest.json`**: Extension configuration, permissions, and file references\n- **`background.js`**: Background service worker that manages extension state\n- **`content.js`**: Content script that modifies link behavior and provides link selection\n- **`options.html`**: Options page for user configuration\n- **`options.js`**: Options page functionality\n- **`icons/`**: Extension icons in different sizes\n\n### Development Workflow\n\n1. **Edit files directly** in the project folder\n2. **Reload the extension** in Chrome when you make changes:\n   - Go to `chrome://extensions/`\n   - Click the refresh icon on your extension\n3. **Test your changes** on any website\n\n## How It Works\n\nThe extension uses multiple components:\n\n1. **Background Script**: Manages extension state and handles keyboard shortcuts\n2. **Content Script**: Modifies link behavior and provides link selection functionality\n3. **Options Page**: Allows users to configure settings\n4. **Manifest**: Defines extension permissions and structure\n\n### Link Modification Process\n\n1. **Modifies existing links**: Removes `target` attributes from all links on page load\n2. **Handles dynamic content**: Uses MutationObserver to catch newly added links\n3. **Intercepts clicks**: Prevents default behavior for links that would open new windows\n4. **Forces same-tab navigation**: Redirects all link clicks to open in the current tab\n\n## Testing\n\nTo test the extension:\n\n1. Install the extension\n2. Visit any website with links that open in new tabs\n3. Click on those links - they should now open in the same tab\n4. Test the link selection feature by holding your custom key and dragging\n5. Check the browser console for any error messages\n\n## Troubleshooting\n\n- If links still open in new tabs, try refreshing the page\n- Check the browser console for any error messages\n- Ensure the extension is enabled in `chrome://extensions/`\n- Verify that all files are in the correct locations\n\n## Permissions\n\nThis extension requires:\n- `activeTab`: To run content scripts on web pages\n- `storage`: To save user settings\n\nNo personal data is collected or transmitted by this extension.\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test thoroughly\n5. Submit a pull request\n\n## License\n\nThis project is open source and available under the MIT License. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirpooya%2Fchrome-hyperlink-powerups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsirpooya%2Fchrome-hyperlink-powerups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsirpooya%2Fchrome-hyperlink-powerups/lists"}