Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
A Chrome Extension that allows you to **switch the domain portion (including protocol http/https)** while **preserving the path portion** (e.g., `/products/123?ref=abc#section`) of the currently open page.
Sign in to like and favorite skills
A Chrome Extension that allows you to switch the domain portion (including protocol http/https) while preserving the path portion (e.g.,
/products/123?ref=abc#section) of the currently open page.
Example: When viewing
https://example.com/app/dashboard?tab=reports, selecting a registered domain https://staging.example.org will open a new tab at:
https://staging.example.org/app/dashboard?tab=reports
pathname + search + hash from current tab's location and combine with selected base URL to generate new URLtabs.create (works across different origins)| Term | Description |
|---|---|
| Base URL | Protocol + domain (+ port) only. Examples: , |
| Path Portion | Concatenation of . Example: |
| Domain Hopping | The operation of switching to a different registered base URL while preserving the path portion |
locationconst pathPart = pathname + search + hash/ if selected base ends with /base.replace(/\/$/, '') + pathParttabs.create({ url: newUrl })chrome.storage.sync (synced across devices)interface DomainEntry { id: string; // UUID or nanoid label?: string; // Optional display name baseUrl: string; // Protocol + domain (+ port), no path allowed pinned?: boolean; // Pin flag lastUsedAt?: number; // Unix epoch (ms) } interface DomainListState { entries: DomainEntry[]; version: number; // For migration }
new URL(baseUrl) does not throw an exceptionpathname === '/' (no path attached)/ unified to oneversion difference (e.g., populate additional fields)| Agent Name | Role | Primary Responsibilities |
|---|---|---|
| URLComposer | URL Reconstruction | Extract path from current tab + combine with base URL |
| StorageAgent | Persistence | URL list CRUD / lastUsedAt updates |
| UIPresenter | UI Generation | Sorting / display / event wiring |
| Validator | Validation | Input URL syntax, duplication, normalization |
| MigrationAgent | Data Migration | Structure adjustment on version differences |
| NavigationAgent | Tab Navigation | invocation for new tab and error handling |
| TelemetryAgent (Future) | Usage Metrics | Operation frequency / success/failure statistics |
packages/ storage/ // StorageAgent implementation module-manager/ // (Existing) Leverage for agent DI shared/ // Type definitions (DomainEntry, etc.) chrome-extension/src/ background/ // NavigationAgent (tabs.create) ui/ // UIPresenter utils/ // Validator / MigrationAgent / URLComposer breakdown
http://localhost:3000 OK, https://example.com/app NG, duplicates NGIn the initial phase, implement only the minimal Agents to satisfy MVP requirements, then build upon them incrementally.