diff --git a/extensions/README.md b/extensions/README.md index 8c9b0df..d9f53e1 100644 --- a/extensions/README.md +++ b/extensions/README.md @@ -9,7 +9,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio | Name | Version | Description | | --- | --- | --- | -| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.3 | The best assistant for batch asking and quick typing of prompts. | +| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.4 | The best assistant for batch asking and quick typing of prompts. | | [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. | | [@noi/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.0 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. | | [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.0 | Reset certain website styles to enhance compatibility with Noi. | diff --git a/extensions/noi-ask/main.js b/extensions/noi-ask/main.js index ec5ed07..f682e9d 100644 --- a/extensions/noi-ask/main.js +++ b/extensions/noi-ask/main.js @@ -19,6 +19,13 @@ class NoiAsk { } } + static autoFocus() { + const inputElement = document.querySelector('textarea'); + if (inputElement) { + inputElement.focus(); + } + } + static simulateUserInput(element, text) { const inputEvent = new InputEvent('input', { bubbles: true, @@ -69,6 +76,10 @@ class ClaudeAsk extends NoiAsk { } } + static autoFocus() { + this.sync(''); + } + static submit() { // subsequent screens use this let btn = document.querySelector('button[aria-label*="Send Message"]'); @@ -97,6 +108,13 @@ class GeminiAsk extends NoiAsk { } } + static autoFocus() { + const inputElement = document.querySelector('.ql-editor.textarea'); + if (inputElement) { + inputElement.focus(); + } + } + static submit() { const btn = document.querySelector('button[aria-label*="Send message"]'); if (btn) { @@ -120,6 +138,13 @@ class HuggingChatAsk extends NoiAsk { } } + static autoFocus() { + var inputElement = document.querySelector('textarea[placeholder*="Ask anything"]'); + if (inputElement) { + inputElement.focus(); + } + } + static submit() { var btn = document.querySelector('form.relative > div > button[type="submit"]'); if (btn) this.autoClick(btn); @@ -158,6 +183,16 @@ class CopilotAsk extends NoiAsk { } } + static autoFocus() { + const serpDOM = document.querySelector('.cib-serp-main'); + const inputDOM = serpDOM.shadowRoot.querySelector('#cib-action-bar-main'); + const textInputDOM = inputDOM.shadowRoot.querySelector('cib-text-input'); + const inputElement = textInputDOM ? textInputDOM.shadowRoot.querySelector('#searchbox') : inputDOM.shadowRoot.querySelector('#searchbox'); + if (inputElement) { + inputElement.focus(); + } + } + static submit() { try { // Access SERP Shadow DOM diff --git a/extensions/noi-ask/manifest.json b/extensions/noi-ask/manifest.json index d4336fb..2edd268 100644 --- a/extensions/noi-ask/manifest.json +++ b/extensions/noi-ask/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "@noi/ask", - "version": "0.1.3", + "version": "0.1.4", "homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask", "description": "The best assistant for batch asking and quick typing of prompts.", "content_scripts": [ diff --git a/extensions/noi.extensions.json b/extensions/noi.extensions.json index 49e569c..0659509 100644 --- a/extensions/noi.extensions.json +++ b/extensions/noi.extensions.json @@ -5,7 +5,7 @@ { "name": "@noi/ask", "description": "The best assistant for batch asking and quick typing of prompts.", - "version": "0.1.3", + "version": "0.1.4", "url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask", "dirname": "noi-ask", "disabled": false diff --git a/locales/de/app.json b/locales/de/app.json index 7fbd9e0..86e8427 100644 --- a/locales/de/app.json +++ b/locales/de/app.json @@ -22,6 +22,7 @@ "showSidebar": "Seitenleiste anzeigen", "hideSidebar": "Seitenleiste verstecken", "devTools": "Entwicklertools", + "monochromatic": "Monochrom", "frostedTexture": "Mattierte Textur", "xQuit": "Klicken Sie auf [X] zum Beenden", "systemTray": "Systemtray", @@ -69,7 +70,13 @@ "rename": "Umbenennen", "user": "Benutzer", "setSystemTray": "Als Systemtray festlegen", - "clearCache": "Cache-Daten löschen" + "clearCache": "Cache-Daten löschen", + "find": { + "name": "Suchen", + "findNext": "Weitersuchen", + "findPrevious": "Vorherige suchen", + "jumpToSelection": "Zur Auswahl springen" + } }, "form": { "name": "Name", @@ -106,6 +113,7 @@ "name": "Allgemein", "syncBookmarks": "Lesezeichen synchronisieren", "globalShortcut": "Globales Kürzel", + "trayShortcut": "Systemablage-Verknüpfung", "recording": "Aufnahme...", "proxy": "Proxy", "proxyRules": "Regeln", diff --git a/locales/en/app.json b/locales/en/app.json index 6118af8..acf70f4 100644 --- a/locales/en/app.json +++ b/locales/en/app.json @@ -22,6 +22,7 @@ "showSidebar": "Show Sidebar", "hideSidebar": "Hide Sidebar", "devTools": "Developer Tools", + "monochromatic": "Monochromatic", "frostedTexture": "Frosted Texture", "xQuit": "Click [X] to Exit", "systemTray": "System Tray", @@ -69,7 +70,13 @@ "rename": "Rename", "user": "User", "setSystemTray": "Set as System Tray", - "clearCache": "Clear Cache Data" + "clearCache": "Clear Cache Data", + "find": { + "name": "Find", + "findNext": "Find Next", + "findPrevious": "Find Previous", + "jumpToSelection": "Jump to Selection" + } }, "form": { "name": "Name", @@ -106,6 +113,7 @@ "name": "General", "syncBookmarks": "Sync Bookmarks", "globalShortcut": "Global shortcut", + "trayShortcut": "System Tray Shortcut", "recording": "Recording...", "proxy": "Proxy", "proxyRules": "Rules", diff --git a/locales/es/app.json b/locales/es/app.json index 5debd30..e6f1e65 100644 --- a/locales/es/app.json +++ b/locales/es/app.json @@ -22,6 +22,7 @@ "showSidebar": "Mostrar Barra Lateral", "hideSidebar": "Ocultar Barra Lateral", "devTools": "Herramientas para Desarrolladores", + "monochromatic": "Monocromático", "frostedTexture": "Textura Esmerilada", "xQuit": "Clic en [X] para Salir", "systemTray": "Bandeja del Sistema", @@ -69,7 +70,13 @@ "rename": "Renombrar", "user": "Usuario", "setSystemTray": "Establecer como Bandeja del Sistema", - "clearCache": "Limpiar Datos de Caché" + "clearCache": "Limpiar Datos de Caché", + "find": { + "name": "Buscar", + "findNext": "Buscar siguiente", + "findPrevious": "Buscar anterior", + "jumpToSelection": "Saltar a la selección" + } }, "form": { "name": "Nombre", @@ -106,6 +113,7 @@ "name": "General", "syncBookmarks": "Sincronizar Marcadores", "globalShortcut": "Atajo global", + "trayShortcut": "Acceso directo de la bandeja del sistema", "recording": "Grabando…", "proxy": "Proxy", "proxyRules": "Reglas", diff --git a/locales/fr/app.json b/locales/fr/app.json index 09849a4..76ee5a6 100644 --- a/locales/fr/app.json +++ b/locales/fr/app.json @@ -22,6 +22,7 @@ "showSidebar": "Afficher la barre latérale", "hideSidebar": "Masquer la barre latérale", "devTools": "Outils de développement", + "monochromatic": "Monochromatique", "frostedTexture": "Texture givrée", "xQuit": "Cliquer sur [X] pour quitter", "systemTray": "Zone de notification", @@ -69,7 +70,13 @@ "rename": "Renommer", "user": "Utilisateur", "setSystemTray": "Définir comme zone de notification", - "clearCache": "Effacer les données du cache" + "clearCache": "Effacer les données du cache", + "find": { + "name": "Trouver", + "findNext": "Trouver suivant", + "findPrevious": "Trouver précédent", + "jumpToSelection": "Aller à la sélection" + } }, "form": { "name": "Nom", @@ -106,6 +113,7 @@ "name": "Général", "syncBookmarks": "Synchroniser les marque-pages", "globalShortcut": "Raccourci global", + "trayShortcut": "Raccourci de la barre des tâches", "recording": "Enregistrement…", "proxy": "Proxy", "proxyRules": "Règles", diff --git a/locales/hu/app.json b/locales/hu/app.json index c7900c0..6a1162c 100644 --- a/locales/hu/app.json +++ b/locales/hu/app.json @@ -22,6 +22,7 @@ "showSidebar": "Oldalsáv megjelenítése", "hideSidebar": "Oldalsáv elrejtése", "devTools": "Fejlesztői eszközök", + "monochromatic": "Monokromatikus", "frostedTexture": "Fagyott textúra", "xQuit": "Kilépéshez kattintson a [X]-re", "systemTray": "Rendszertálca", @@ -69,7 +70,13 @@ "rename": "Átnevezés", "user": "Felhasználó", "setSystemTray": "Beállítás rendszertálcaként", - "clearCache": "Gyorsítótár adatok törlése" + "clearCache": "Gyorsítótár adatok törlése", + "find": { + "name": "Keresés", + "findNext": "Következő keresése", + "findPrevious": "Előző keresése", + "jumpToSelection": "Ugrás a kijelölésre" + } }, "form": { "name": "Név", @@ -106,6 +113,7 @@ "name": "Általános", "syncBookmarks": "Könyvjelzők szinkronizálása", "globalShortcut": "Globális gyorsbillentyű", + "trayShortcut": "Rendszertálca gyorsindító", "recording": "Felvétel...", "proxy": "Proxy", "proxyRules": "Szabályok", diff --git a/locales/it/app.json b/locales/it/app.json index b8a10cd..6a5fc05 100644 --- a/locales/it/app.json +++ b/locales/it/app.json @@ -22,6 +22,7 @@ "showSidebar": "Mostra Barra Laterale", "hideSidebar": "Nascondi Barra Laterale", "devTools": "Strumenti per Sviluppatori", + "monochromatic": "Monocromatico", "frostedTexture": "Texture Glassata", "xQuit": "Clicca [X] per Uscire", "systemTray": "Area di Notifica", @@ -69,7 +70,13 @@ "rename": "Rinomina", "user": "Utente", "setSystemTray": "Imposta come Area di Notifica", - "clearCache": "Pulisci Cache" + "clearCache": "Pulisci Cache", + "find": { + "name": "Trova", + "findNext": "Trova successivo", + "findPrevious": "Trova precedente", + "jumpToSelection": "Salta alla selezione" + } }, "form": { "name": "Nome", @@ -106,6 +113,7 @@ "name": "Generale", "syncBookmarks": "Sincronizza Segnalibri", "globalShortcut": "Scorciatoia globale", + "trayShortcut": "Scorciatoia area di notifica", "recording": "Registrazione…", "proxy": "Proxy", "proxyRules": "Regole", diff --git a/locales/ja/app.json b/locales/ja/app.json index 2a6a27c..e73c454 100644 --- a/locales/ja/app.json +++ b/locales/ja/app.json @@ -22,6 +22,7 @@ "showSidebar": "サイドバーを表示", "hideSidebar": "サイドバーを隠す", "devTools": "開発者ツール", + "monochromatic": "モノクロ", "frostedTexture": "フロステッドテクスチャ", "xQuit": "[X]をクリックして終了", "systemTray": "システムトレイ", @@ -69,7 +70,13 @@ "rename": "名前を変更", "user": "ユーザー", "setSystemTray": "システムトレイとして設定", - "clearCache": "キャッシュデータをクリア" + "clearCache": "キャッシュデータをクリア", + "find": { + "name": "検索", + "findNext": "次を検索", + "findPrevious": "前を検索", + "jumpToSelection": "選択へジャンプ" + } }, "form": { "name": "名前", @@ -106,6 +113,7 @@ "name": "一般", "syncBookmarks": "ブックマークを同期", "globalShortcut": "グローバルショートカット", + "trayShortcut": "システムトレイショートカット", "recording": "録音中…", "proxy": "プロキシ", "proxyRules": "ルール", diff --git a/locales/ko/app.json b/locales/ko/app.json index a53f438..f3a4b44 100644 --- a/locales/ko/app.json +++ b/locales/ko/app.json @@ -22,6 +22,7 @@ "showSidebar": "사이드바 표시", "hideSidebar": "사이드바 숨기기", "devTools": "개발자 도구", + "monochromatic": "단색", "frostedTexture": "서리 질감", "xQuit": "[X] 클릭으로 종료", "systemTray": "시스템 트레이", @@ -69,7 +70,13 @@ "rename": "이름 바꾸기", "user": "사용자", "setSystemTray": "시스템 트레이로 설정", - "clearCache": "캐시 데이터 지우기" + "clearCache": "캐시 데이터 지우기", + "find": { + "name": "찾기", + "findNext": "다음 찾기", + "findPrevious": "이전 찾기", + "jumpToSelection": "선택 영역으로 이동" + } }, "form": { "name": "이름", @@ -106,6 +113,7 @@ "name": "일반", "syncBookmarks": "북마크 동기화", "globalShortcut": "전역 단축키", + "trayShortcut": "시스템 트레이 단축키", "recording": "녹음 중…", "proxy": "프록시", "proxyRules": "규칙", diff --git a/locales/pt/app.json b/locales/pt/app.json index 623d19a..2120c1f 100644 --- a/locales/pt/app.json +++ b/locales/pt/app.json @@ -22,6 +22,7 @@ "showSidebar": "Mostrar Barra Lateral", "hideSidebar": "Ocultar Barra Lateral", "devTools": "Ferramentas de Desenvolvedor", + "monochromatic": "Monocromático", "frostedTexture": "Textura Fosca", "xQuit": "Clicar em [X] para Sair", "systemTray": "Bandeja do Sistema", @@ -69,7 +70,13 @@ "rename": "Renomear", "user": "Usuário", "setSystemTray": "Definir como Bandeja do Sistema", - "clearCache": "Limpar Dados de Cache" + "clearCache": "Limpar Dados de Cache", + "find": { + "name": "Encontrar", + "findNext": "Encontrar próximo", + "findPrevious": "Encontrar anterior", + "jumpToSelection": "Saltar para seleção" + } }, "form": { "name": "Nome", @@ -106,6 +113,7 @@ "name": "Geral", "syncBookmarks": "Sincronizar Favoritos", "globalShortcut": "Atalho global", + "trayShortcut": "Atalho da bandeja do sistema", "recording": "Gravando...", "proxy": "Proxy", "proxyRules": "Regras", diff --git a/locales/ru/app.json b/locales/ru/app.json index 752ac8f..ba30db7 100644 --- a/locales/ru/app.json +++ b/locales/ru/app.json @@ -22,6 +22,7 @@ "showSidebar": "Показать боковую панель", "hideSidebar": "Скрыть боковую панель", "devTools": "Инструменты разработчика", + "monochromatic": "Монохромный", "frostedTexture": "Матовая текстура", "xQuit": "Нажмите [X] для выхода", "systemTray": "Системный трей", @@ -69,7 +70,13 @@ "rename": "Переименовать", "user": "Пользователь", "setSystemTray": "Установить как системный трей", - "clearCache": "Очистить данные кэша" + "clearCache": "Очистить данные кэша", + "find": { + "name": "Найти", + "findNext": "Найти далее", + "findPrevious": "Найти предыдущее", + "jumpToSelection": "Перейти к выбору" + } }, "form": { "name": "Имя", @@ -106,6 +113,7 @@ "name": "Общие", "syncBookmarks": "Синхронизировать закладки", "globalShortcut": "Глобальные горячие клавиши", + "trayShortcut": "Ярлык в системном трее", "recording": "Запись...", "proxy": "Прокси", "proxyRules": "Правила", diff --git a/locales/tr/app.json b/locales/tr/app.json index 15bd518..c4d3edf 100644 --- a/locales/tr/app.json +++ b/locales/tr/app.json @@ -23,6 +23,7 @@ "hideSidebar": "Kenar Çubuğunu Gizle", "devTools": "Geliştirici Araçları", "frostedTexture": "Buzlu Doku", + "monochromatic": "Monokrom", "xQuit": "[X]'e Tıklayarak Çık", "systemTray": "Sistem Tepsisi", @@ -69,7 +70,13 @@ "rename": "Yeniden Adlandır", "user": "Kullanıcı", "setSystemTray": "Sistem Tepsisi Olarak Ayarla", - "clearCache": "Önbellek Verilerini Temizle" + "clearCache": "Önbellek Verilerini Temizle", + "find": { + "name": "Bul", + "findNext": "Sonrakini Bul", + "findPrevious": "Öncekini Bul", + "jumpToSelection": "Seçime Atla" + } }, "form": { "name": "Ad", @@ -106,6 +113,7 @@ "name": "Genel", "syncBookmarks": "Yer İşaretlerini Senkronize Et", "globalShortcut": "Küresel kısayol", + "trayShortcut": "Sistem Tepsisi Kısayolu", "recording": "Kaydediliyor...", "proxy": "Proxy", "proxyRules": "Kurallar", diff --git a/locales/zh/app.json b/locales/zh/app.json index 0c361dc..f99a297 100644 --- a/locales/zh/app.json +++ b/locales/zh/app.json @@ -22,6 +22,7 @@ "showSidebar": "显示侧边栏", "hideSidebar": "隐藏侧边栏", "devTools": "开发者工具", + "monochromatic": "单色", "frostedTexture": "磨砂纹理", "xQuit": "点击 [X] 退出", "systemTray": "系统托盘", @@ -69,7 +70,13 @@ "rename": "重命名", "user": "用户", "setSystemTray": "设置为系统托盘", - "clearCache": "清除缓存数据" + "clearCache": "清除缓存数据", + "find": { + "name": "查找", + "findNext": "查找下一个", + "findPrevious": "查找上一个", + "jumpToSelection": "跳转到选择" + } }, "form": { "name": "名称", @@ -106,6 +113,7 @@ "name": "通用", "syncBookmarks": "同步书签", "globalShortcut": "全局快捷键", + "trayShortcut": "系统托盘快捷键", "recording": "正在录制…", "proxy": "代理", "proxyRules": "规则", diff --git a/locales/zh_Hant/app.json b/locales/zh_Hant/app.json index 6656abf..bb27184 100644 --- a/locales/zh_Hant/app.json +++ b/locales/zh_Hant/app.json @@ -22,6 +22,7 @@ "showSidebar": "顯示側邊欄", "hideSidebar": "隱藏側邊欄", "devTools": "開發者工具", + "monochromatic": "單色", "frostedTexture": "磨砂質感", "xQuit": "點擊 [X] 退出", "systemTray": "系統托盤", @@ -69,7 +70,13 @@ "rename": "重命名", "user": "用戶", "setSystemTray": "設置為系統托盤", - "clearCache": "清除快取數據" + "clearCache": "清除快取數據", + "find": { + "name": "查找", + "findNext": "查找下一個", + "findPrevious": "查找上一個", + "jumpToSelection": "跳轉到選擇" + } }, "form": { "name": "名稱", @@ -106,6 +113,7 @@ "name": "通用", "syncBookmarks": "同步書簽", "globalShortcut": "全域快捷鍵", + "trayShortcut": "系統托盤快捷鍵", "recording": "正在錄制…", "proxy": "代理", "proxyRules": "規則",