CopyUrl
Extension Actions
- Live on Store
A Chrome Extension built with TypeScript and Webpack
## 主要功能
- 一鍵複製目前分頁「標題+網址」(點擊工具列圖示)
- 雙擊圖示(約 500ms 內)複製「目前視窗」所有分頁,項目以空行分隔(選項頁的「複製所有分頁」則是跨所有視窗)
- 「選項頁」可自訂輸出格式(儲存在 chrome.storage.sync),支援佔位符:
- {title}、{url}
- 範例:{title}、{title} - {url}
- 多分頁時使用空行加入(\n\n)
- 可選「decode URI」:以 decodeURI(url) 嘗試解碼網址(例如 %20 → 空白;保留字元仍不解碼)
- 「選項頁」提供「複製所有分頁」按鈕與格式說明/即時預覽(跨所有瀏覽器視窗)
- 內容指令碼負責寫入剪貼簿(先用 Clipboard API,失敗時有 execCommand 後援),提升各網站下的相容性
- 自動略過特殊頁面(chrome://、chrome-extension://、edge://、moz-extension://、about: 等)
- 工具列徽章即時回饋:
- 成功(單一):綠色 ✓(約 500ms)
- 成功(多筆):藍色 ✓(約 800ms)
- 失敗:紅色 ✗(顯示錯誤)
## 為什麼要安裝
- 以最少步驟把連結貼到文件、任務單或聊天工具,節省日常操作時間
- 可自訂模板讓輸出一致(適合 Markdown、報表、筆記流程)
- 一鍵彙整目前視窗所有分頁,快速分享研究/會議用連結清單
- 全程本機運作、無後端依賴;僅需精簡權限(storage、activeTab、tabs)
- 由內容指令碼處理剪貼簿,實務上更穩定可靠
## 使用方式與注意事項
- 點擊圖示:複製目前分頁的 Title + URL。
- 連續雙擊(~500ms 內):複製目前視窗所有分頁(依自訂格式,項目間空行)。
- 「選項頁」:
- 編輯格式模板與「decode URI」選項,右側可預覽效果。
- 「複製所有分頁」按鈕會一次彙整「所有視窗」的分頁。
- 特殊頁面過濾:上述系統/擴充頁面自動略過。
- file:// 網址:需在擴充功能頁啟用「允許存取檔案網址」,否則內容指令碼收不到訊息,將導致錯誤提示。
## 權限與隱私
- 權限:storage(儲存設定)、activeTab、tabs。
- 不蒐集、不傳送瀏覽資料;無任何後端服務或分析。
---
## Main features
- One-click copy of current tab “Title + URL” (click the toolbar icon)
- Double-click (~500ms window) to copy all tabs in the current window; items separated by a blank line
- Options page button “Copy all tabs” collects across all browser windows
- Options page with customizable template stored in chrome.storage.sync:
- Placeholders: {title}, {url}
- Examples: {title}, {title} - {url}
- Multi-tab join: blank line (\n\n)
- Optional “decode URI”: apply decodeURI(url) with try/catch (%20 → space; reserved characters remain encoded)
- Clipboard handled in the content script (Clipboard API with execCommand fallback) for better site compatibility
- Automatically skips special pages (chrome://, chrome-extension://, edge://, moz-extension://, about:, etc.)
- Toolbar badge feedback:
- Success (single): green ✓ (~500ms)
- Success (multiple): blue ✓ (~800ms)
- Errors: red ✗
## Why install
- Paste links into docs/tickets/chat with minimum friction
- Consistent, customizable formatting (great for Markdown/reports/notes)
- One-click list of all tabs in the current window for sharing research/meeting links
- Local-only, no backend; minimal permissions (storage, activeTab, tabs)
- Reliable clipboard handling via content script
## Usage notes
- Click: copy current tab. Double-click: copy all tabs in current window.
- Options page: edit template and “decode URI” with live preview; “Copy all tabs” across all windows.
- Special pages are skipped automatically.
- For file:// pages, enable “Allow access to file URLs” in the extension page; otherwise messages won’t reach the content script.
## Permissions & privacy
- Permissions: storage, activeTab, tabs.
- No data collection or backend calls; everything runs locally.
<a href="https://www.flaticon.com/free-icons/copy" title="copy icons">Copy icons created by Ongicon - Flaticon</a>