{"id":50455742,"url":"https://github.com/gnuton/chrome2console","last_synced_at":"2026-06-01T02:30:27.924Z","repository":{"id":351104226,"uuid":"1209449965","full_name":"gnuton/chrome2console","owner":"gnuton","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-13T16:52:08.000Z","size":1683,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T17:37:34.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gnuton.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":"2026-04-13T12:47:31.000Z","updated_at":"2026-04-13T16:52:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gnuton/chrome2console","commit_stats":null,"previous_names":["gnuton/chrome2console"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/gnuton/chrome2console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuton%2Fchrome2console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuton%2Fchrome2console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuton%2Fchrome2console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuton%2Fchrome2console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnuton","download_url":"https://codeload.github.com/gnuton/chrome2console/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuton%2Fchrome2console/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33757790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-01T02:30:26.783Z","updated_at":"2026-06-01T02:30:27.917Z","avatar_url":"https://github.com/gnuton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chrome2Console\n\nChrome2Console is a Chrome extension that allows you to send selected text from any webpage to a local console command and replace the selection with the command's output.\n\n## Features\n- **Context Menu Integration**: Right-click any text and select \"Send to Console\".\n- **Dynamic Replacement**: The output from your script replaces the highligted text in the browser.\n- **Local Control**: Run any shell script, AI agent, or bash command locally.\n\n## Architecture\n1. **Chrome Extension**: Captured via `contextMenus` API.\n2. **Native Messaging Host**: A Node.js bridge (`host.js`) that pipes text to local commands.\n3. **Local Command**: Any executable (defaults to `mock-app.sh` for testing).\n\n## Installation \u0026 Setup\n\n### 1. Install the Native Host\nRun the setup script to register the application with Chrome:\n```bash\nbash native-host/setup-native-host.sh\n```\n\n### 2. Load the Extension\n1. Open Chrome and go to `chrome://extensions`.\n2. Enable **Developer mode** (toggle in the top right).\n3. Click **Load unpacked**.\n4. Select the `extension/` directory in this repository.\n5. **Note your Extension ID** (e.g., `ihjbgfndpkaadhhnbofmbbnkfkmolofk`).\n\n### 3. Sync Extension ID\nIf your extension ID differs from the default in the setup script:\n1. Open `~/.config/google-chrome/NativeMessagingHosts/com.gnuton.chrome2console.json`.\n2. Update the `allowed_origins` field to match your ID: `chrome-extension://YOUR_ID_HERE/`.\n\n## Local Testing\nYou can test the native host logic without the extension:\n```bash\nnode native-host/test-local.js\n```\n\n## Customization\nTo change which command is executed, edit the `COMMAND_PATH` variable in `native-host/host.js`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnuton%2Fchrome2console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnuton%2Fchrome2console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnuton%2Fchrome2console/lists"}