{"id":47186432,"url":"https://github.com/dev-shimada/domain-volume-controller","last_synced_at":"2026-03-13T09:35:17.250Z","repository":{"id":341365095,"uuid":"1169847271","full_name":"dev-shimada/domain-volume-controller","owner":"dev-shimada","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-01T10:13:30.000Z","size":406,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-01T14:26:24.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-shimada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-01T10:08:39.000Z","updated_at":"2026-03-01T10:12:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dev-shimada/domain-volume-controller","commit_stats":null,"previous_names":["dev-shimada/domain-volume-controller"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dev-shimada/domain-volume-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Fdomain-volume-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Fdomain-volume-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Fdomain-volume-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Fdomain-volume-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-shimada","download_url":"https://codeload.github.com/dev-shimada/domain-volume-controller/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-shimada%2Fdomain-volume-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30464858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-03-13T09:35:15.264Z","updated_at":"2026-03-13T09:35:17.227Z","avatar_url":"https://github.com/dev-shimada.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Domain Volume Controller\n\nChrome extension to control audio/video volume per domain.\n\n## Features\n\n- 🎚️ Set different volume levels for each website domain\n- 🔄 Automatically applies saved volume when visiting a domain\n- 🎯 Works with dynamically loaded media elements (YouTube, etc.)\n- 💾 Volume settings persist across browser sessions\n\n## Installation\n\n### For Development\n\n1. Install dependencies:\n```bash\nnpm install\n```\n\n2. Build the extension:\n```bash\nnpm run build\n```\n\n3. Load in Chrome:\n   - Open `chrome://extensions`\n   - Enable \"Developer mode\"\n   - Click \"Load unpacked\"\n   - Select the `dist` folder\n\n### Creating Icons\n\nThe extension requires icons in the following sizes:\n- 16x16 pixels (toolbar icon)\n- 48x48 pixels (extension management)\n- 128x128 pixels (Chrome Web Store)\n\nCreate a `icons` folder in the project root and add PNG files:\n- `icons/icon16.png`\n- `icons/icon48.png`\n- `icons/icon128.png`\n\nYou can use any image editor or online tool to create these icons. A simple speaker or volume icon works well.\n\n## Usage\n\n1. Navigate to any website with audio or video content\n2. Click the extension icon in the toolbar\n3. Adjust the volume slider (0-100%)\n4. The volume is saved automatically and will be applied whenever you visit that domain\n\n## Development\n\n### Run Tests\n\n```bash\nnpm test\n```\n\n### Run Tests in Watch Mode\n\n```bash\nnpm run test:watch\n```\n\n### Test Coverage\n\n```bash\nnpm run test:coverage\n```\n\n### Build for Development\n\n```bash\nnpm run build:dev\n```\n\n### Build for Production\n\n```bash\nnpm run build\n```\n\n### Watch Mode (for development)\n\n```bash\nnpm run watch\n```\n\n### Package for Chrome Web Store\n\nCreate a production-ready zip file for uploading to Chrome Web Store:\n\n```bash\ncd domain-volume-controller\nnpm run package\n```\n\nThis will create `domain-volume-controller.zip` in the project root, excluding development files and source maps.\n\n## Release Process\n\n### Automated Release (GitHub Actions)\n\n1. Update the version in `domain-volume-controller/manifest.json`\n2. Commit your changes:\n   ```bash\n   git add .\n   git commit -m \"Release v1.0.0\"\n   ```\n3. Create and push a version tag:\n   ```bash\n   git tag v1.0.0\n   git push origin main --tags\n   ```\n4. GitHub Actions will automatically:\n   - Run tests\n   - Build the extension\n   - Create a clean zip file\n   - Create a GitHub Release with the zip file attached\n\n### Manual Release\n\n1. Build and package:\n   ```bash\n   cd domain-volume-controller\n   npm run package\n   ```\n2. Upload `domain-volume-controller.zip` to [Chrome Web Store Developer Dashboard](https://chrome.google.com/webstore/devconsole)\n\n## Project Structure\n\n```\ndomain-volume-controller/\n├── src/\n│   ├── background/\n│   │   └── service-worker.ts      # Service Worker\n│   ├── content/\n│   │   └── content-script.ts      # Volume control logic\n│   ├── popup/\n│   │   ├── popup.ts               # Popup UI logic\n│   │   ├── popup.html             # Popup UI\n│   │   └── popup.css              # Popup styles\n│   ├── shared/\n│   │   ├── types.ts               # Type definitions\n│   │   ├── storage.ts             # Chrome Storage operations\n│   │   └── constants.ts           # Constants\n│   └── utils/\n│       └── domain.ts              # Domain extraction utilities\n├── tests/\n│   ├── unit/                      # Unit tests\n│   └── mocks/\n│       └── chrome.ts              # Chrome API mocks\n├── dist/                          # Build output\n├── manifest.json                  # Manifest V3\n├── package.json\n├── tsconfig.json\n├── jest.config.js\n└── webpack.config.js\n```\n\n## Technical Details\n\n- **Manifest V3**: Uses the latest Chrome extension manifest version\n- **TypeScript**: Fully typed for better development experience\n- **Jest**: Comprehensive test coverage\n- **Webpack**: Optimized builds\n- **MutationObserver**: Automatically detects dynamically loaded media elements\n\n## How It Works\n\n1. **Content Script**: Runs on every page, finds all `\u003caudio\u003e` and `\u003cvideo\u003e` elements, and applies the saved volume\n2. **Service Worker**: Handles communication between popup and content script, manages storage\n3. **Popup**: Provides UI to adjust volume for the current domain\n4. **MutationObserver**: Watches for new media elements added to the page dynamically\n\n## Browser Compatibility\n\n- Chrome 88+\n- Edge 88+\n- Any Chromium-based browser supporting Manifest V3\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Write tests for your changes\n4. Ensure all tests pass\n5. Submit a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-shimada%2Fdomain-volume-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-shimada%2Fdomain-volume-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-shimada%2Fdomain-volume-controller/lists"}