United Statesbit2pixel/chrome-control
A JXA script and an Alfred Workflow for controlling Google Chrome
🚀 chrome-control: Quản lý hàng trăm tab Chrome bằng JXA và Alfred
Script JXA + Alfred Workflow để đóng, liệt kê, focus tab Chrome — từ dòng lệnh hoặc phím tắt Alfred.
chrome-control là một script Javascript for Automation (JXA) kèm Alfred Workflow, giúp điều khiển Google Chrome trên macOS. Tác giả Renan Cakirerk viết công cụ này để xử lý hiệu quả hàng trăm tab đang mở, thay thế thao tác thủ công lẫn nhau.
✨ Điểm nổi bật
- Dedup: Đóng ngay các tab trùng URL.
- Đóng theo tiêu đề:
./chrome.js close --title inbox iphone. - Đóng theo URL:
./chrome.js close --url mail.google apple. - Liệt kê JSON:
./chrome.js list | jq .— xuất cấu trúc tab. - Focus/đóng tab cụ thể:
./chrome.js focus 0,13. - Alfred Workflow: Lệnh
tabs,close url,close title,dedup. - Cảnh báo người dùng: Hỏi trước khi đóng;
--yesđể bỏ qua,--uiđể dùng dialog Chrome.
💡 Vì sao đáng chú ý
Thay vì click từng tab, chrome-control biến quy trình quản lý tab thành lệnh một dòng, dễ kết hợp Alfred, vim, vscode. JSON output mở khả năng xử lý chuỗi (pipe jq), phù hợp người dùng nhiều tab và workflow tùy biến.
#JXA #AlfredWorkflow #Chrome #JavaScript #TiniX
Similar Projects
Discover other similar projects and AI models.
📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Alfred workflow with dozens of features for controlling your Obsidian vault.