mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-09 04:29:09 +03:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fe15965e89 | |||
| 759307f983 | |||
| b766f61b0c | |||
| 1e704b51a8 | |||
| b30fac5ded | |||
| 08ad7c4325 | |||
| 80d4bff0b4 | |||
| dbb6806a78 | |||
| e9c7d58273 | |||
| 19ab6eec0b | |||
|
|
dff29d447d | ||
| d97becfaae | |||
| 9926e7978f | |||
| 23e0c5f772 | |||
| 2aa60d5553 | |||
| 5eca0b395b | |||
| 51de84bcb7 | |||
| 19f54f1c2f |
3
.github/workflows/publish-extension.yml
vendored
3
.github/workflows/publish-extension.yml
vendored
@@ -2,8 +2,7 @@ name: Publish Chrome Extension
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches: [ main ]
|
||||||
- 'v*.*.*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# [1.6.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.5.0...v1.6.0) (2025-06-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add more locales ([d97becf](https://github.com/obsqrbtz/goose-highlighter/commit/d97becfaae696e33247840090e8a752b5ed4ed72))
|
||||||
|
|
||||||
# [1.5.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.4.0...v1.5.0) (2025-06-24)
|
# [1.5.0](https://github.com/obsqrbtz/goose-highlighter/compare/v1.4.0...v1.5.0) (2025-06-24)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
PRIVACY.MD
Normal file
1
PRIVACY.MD
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Goose Highlighter does not collect, store, or transmit any personal or sensitive user data.
|
||||||
98
_locales/de/messages.json
Normal file
98
_locales/de/messages.json
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Markiere Wörter und Phrasen auf jeder Webseite. Erstelle benutzerdefinierte Listen, verwende Farben, importiere/exportiere und mehr."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Liste auswählen:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Neue Liste"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Liste löschen"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Listenname:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Hintergrund:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Vordergrund:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Hervorhebung aktivieren"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Wörter hier einfügen"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Wörter hinzufügen"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Auswählen"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Löschen"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Deaktivieren"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Aktivieren"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "JSON importieren"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "JSON exportieren"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Standardliste"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Neue Liste"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "aktiv"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Ungültige JSON-Datei"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Möchten Sie diese Liste wirklich löschen?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Möchten Sie die ausgewählten Wörter wirklich löschen?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Abwählen"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Hervorhebungslisten"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Dunkelmodus"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Listeneinstellungen"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Wortliste"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Wörter hinzufügen"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Aktivieren"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Suchen..."
|
||||||
|
},
|
||||||
|
"options": { "message": "Optionen" },
|
||||||
|
"match_case": { "message": "Groß-/Kleinschreibung beachten" },
|
||||||
|
"match_whole": { "message": "Ganzes Wort übereinstimmen" }
|
||||||
|
}
|
||||||
@@ -2,6 +2,9 @@
|
|||||||
"extension_name": {
|
"extension_name": {
|
||||||
"message": "Goose Highlighter"
|
"message": "Goose Highlighter"
|
||||||
},
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Highlight words and phrases on any website. Create custom lists, use colors, import/export, and more."
|
||||||
|
},
|
||||||
"select_list": {
|
"select_list": {
|
||||||
"message": "Select List:"
|
"message": "Select List:"
|
||||||
},
|
},
|
||||||
@@ -85,5 +88,17 @@
|
|||||||
},
|
},
|
||||||
"global_highlight_toggle": {
|
"global_highlight_toggle": {
|
||||||
"message": "Enable"
|
"message": "Enable"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Search..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Options"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Match Case"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Match Whole Word"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
104
_locales/es/messages.json
Normal file
104
_locales/es/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Resalta palabras y frases en cualquier sitio web. Crea listas personalizadas, usa colores, importa/exporta y más."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Seleccionar lista:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Nueva lista"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Eliminar lista"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Nombre de la lista:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Fondo:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Texto:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Activar resaltado"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Pega las palabras aquí"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Agregar palabras"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Seleccionar"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Eliminar"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Desactivar"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Activar"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "Importar JSON"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "Exportar JSON"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Lista predeterminada"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Nueva lista"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "activo"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Archivo JSON no válido"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "¿Estás seguro de que deseas eliminar esta lista?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "¿Estás seguro de que deseas eliminar las palabras seleccionadas?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Deseleccionar"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Listas de resaltado"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Modo oscuro"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Configuración de la lista"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Lista de palabras"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Agregar palabras"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Activar"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Buscar..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Opciones"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Coincidir mayúsculas/minúsculas"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Coincidir palabra completa"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/fr/messages.json
Normal file
104
_locales/fr/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Surlignez des mots et des phrases sur n'importe quel site web. Créez des listes personnalisées, utilisez des couleurs, importez/exportez, et plus encore."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Sélectionner une liste :"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Nouvelle liste"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Supprimer la liste"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Nom de la liste :"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Arrière-plan :"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Texte :"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Activer la surbrillance"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Collez les mots ici"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Ajouter des mots"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Sélectionner"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Supprimer"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Désactiver"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Activer"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "Importer JSON"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "Exporter JSON"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Liste par défaut"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Nouvelle liste"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "actif"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Fichier JSON invalide"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Êtes-vous sûr de vouloir supprimer cette liste ?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Êtes-vous sûr de vouloir supprimer les mots sélectionnés ?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Désélectionner"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Listes de surbrillance"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Mode sombre"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Paramètres de la liste"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Liste de mots"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Ajouter des mots"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Activer"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Rechercher..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Options"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Respecter la casse"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Mot entier seulement"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/hi/messages.json
Normal file
104
_locales/hi/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "किसी भी वेबसाइट पर शब्द और वाक्यांश हाइलाइट करें। कस्टम सूचियाँ बनाएं, रंगों का उपयोग करें, आयात/निर्यात करें और बहुत कुछ।"
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "सूची चुनें:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "नई सूची"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "सूची हटाएं"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "सूची का नाम:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "पृष्ठभूमि:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "फॉरग्राउंड:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "हाइलाइट सक्षम करें"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "यहाँ शब्द चिपकाएँ"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "शब्द जोड़ें"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "सभी चुनें"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "हटाएं"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "अक्षम करें"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "सक्षम करें"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "JSON आयात करें"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "JSON निर्यात करें"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "डिफ़ॉल्ट सूची"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "नई सूची"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "सक्रिय"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "अमान्य JSON फ़ाइल"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "क्या आप वाकई इस सूची को हटाना चाहते हैं?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "क्या आप वाकई चयनित शब्दों को हटाना चाहते हैं?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "चयन हटाएँ"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "हाइलाइट सूचियाँ"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "डार्क मोड"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "सूची सेटिंग्स"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "शब्द सूची"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "शब्द जोड़ें"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "सक्षम करें"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "खोजें..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "विकल्प"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "केस मिलाएं"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "पूरा शब्द मिलाएं"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/it/messages.json
Normal file
104
_locales/it/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Evidenzia parole e frasi su qualsiasi sito web. Crea liste personalizzate, usa colori, importa/esporta e altro ancora."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Seleziona elenco:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Nuovo elenco"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Elimina elenco"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Nome elenco:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Sfondo:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Colore del testo:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Abilita evidenziazione"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Incolla le parole qui"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Aggiungi parole"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Seleziona"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Elimina"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Disattiva"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Attiva"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "Importa JSON"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "Esporta JSON"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Elenco predefinito"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Nuovo elenco"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "attivo"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "File JSON non valido"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Sei sicuro di voler eliminare questo elenco?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Sei sicuro di voler eliminare le parole selezionate?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Deseleziona"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Elenchi di evidenziazione"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Modalità scura"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Impostazioni elenco"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Elenco parole"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Aggiungi parole"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Attiva"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Cerca..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Opzioni"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Maiuscole/minuscole"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Solo parola intera"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/ja/messages.json
Normal file
104
_locales/ja/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "任意のウェブサイトで単語やフレーズをハイライトします。カスタムリストの作成、色の使用、インポート/エクスポートなどが可能です。"
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "リストを選択:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "新しいリスト"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "リストを削除"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "リスト名:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "背景色:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "文字色:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "ハイライトを有効にする"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "ここに単語を貼り付けてください"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "単語を追加"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "すべて選択"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "削除"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "無効にする"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "有効にする"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "JSONをインポート"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "JSONをエクスポート"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "デフォルトリスト"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "新しいリスト"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "有効"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "無効なJSONファイル"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "このリストを削除してもよろしいですか?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "選択した単語を削除してもよろしいですか?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "すべて解除"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "ハイライトリスト"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "ダークモード"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "リスト設定"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "単語リスト"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "単語を追加"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "有効にする"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "検索..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "オプション"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "大文字と小文字を区別"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "完全一致"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/ko/messages.json
Normal file
104
_locales/ko/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "어떤 웹사이트에서든 단어와 구문을 하이라이트하세요. 맞춤 목록 생성, 색상 사용, 가져오기/내보내기 등 다양한 기능을 제공합니다."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "리스트 선택:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "새 리스트"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "리스트 삭제"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "리스트 이름:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "배경색:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "글자색:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "하이라이트 활성화"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "여기에 단어를 붙여넣기"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "단어 추가"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "선택"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "삭제"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "비활성화"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "활성화"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "JSON 가져오기"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "JSON 내보내기"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "기본 리스트"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "새 리스트"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "활성"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "잘못된 JSON 파일"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "이 리스트를 삭제하시겠습니까?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "선택한 단어를 삭제하시겠습니까?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "선택 해제"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "하이라이트 리스트"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "다크 모드"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "리스트 설정"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "단어 리스트"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "단어 추가"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "활성화"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "검색..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "옵션"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "대소문자 구분"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "전체 단어 일치"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/nl/messages.json
Normal file
104
_locales/nl/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Markeer woorden en zinnen op elke website. Maak aangepaste lijsten, gebruik kleuren, importeer/exporteer en meer."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Selecteer lijst:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Nieuwe lijst"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Lijst verwijderen"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Lijstnaam:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Achtergrond:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Tekstkleur:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Markeren inschakelen"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Plak hier de woorden"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Woorden toevoegen"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Selecteren"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Verwijderen"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Uitschakelen"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Inschakelen"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "JSON importeren"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "JSON exporteren"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Standaardlijst"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Nieuwe lijst"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "actief"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Ongeldig JSON-bestand"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Weet je zeker dat je deze lijst wilt verwijderen?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Weet je zeker dat je de geselecteerde woorden wilt verwijderen?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Deselecteren"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Markeer lijsten"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Donkere modus"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Lijst instellingen"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Woordenlijst"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Woorden toevoegen"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Inschakelen"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Zoeken..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Opties"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Hoofdlettergevoelig"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Alleen volledig woord"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/pl/messages.json
Normal file
104
_locales/pl/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Podświetlaj słowa i frazy na dowolnej stronie internetowej. Twórz niestandardowe listy, używaj kolorów, importuj/eksportuj i więcej."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Wybierz listę:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Nowa lista"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Usuń listę"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Nazwa listy:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Tło:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Kolor tekstu:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Włącz podświetlanie"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Wklej tutaj słowa"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Dodaj słowa"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Zaznacz"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Usuń"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Wyłącz"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Włącz"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "Importuj JSON"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "Eksportuj JSON"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Lista domyślna"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Nowa lista"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "aktywny"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Nieprawidłowy plik JSON"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Czy na pewno chcesz usunąć tę listę?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Czy na pewno chcesz usunąć wybrane słowa?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Odznacz"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Listy podświetleń"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Tryb ciemny"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Ustawienia listy"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Lista słów"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Dodaj słowa"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Włącz"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Szukaj..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Opcje"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Uwzględnij wielkość liter"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Tylko całe słowo"
|
||||||
|
}
|
||||||
|
}
|
||||||
98
_locales/pt_BR/messages.json
Normal file
98
_locales/pt_BR/messages.json
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Destaque palavras e frases em qualquer site. Crie listas personalizadas, use cores, importe/exporte e muito mais."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Selecionar lista:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Nova lista"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Excluir lista"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Nome da lista:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Fundo:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Texto:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Ativar destaque"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Cole as palavras aqui"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Adicionar palavras"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Selecionar"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Excluir"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Desativar"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Ativar"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "Importar JSON"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "Exportar JSON"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Lista padrão"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Nova lista"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "ativo"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Arquivo JSON inválido"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Tem certeza de que deseja excluir esta lista?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Tem certeza de que deseja excluir as palavras selecionadas?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Desmarcar"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Listas de destaque"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Modo escuro"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Configurações da lista"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Lista de palavras"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Adicionar palavras"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Ativar"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Pesquisar..."
|
||||||
|
},
|
||||||
|
"options": { "message": "Opções" },
|
||||||
|
"match_case": { "message": "Diferenciar maiúsculas/minúsculas" },
|
||||||
|
"match_whole": { "message": "Palavra inteira" }
|
||||||
|
}
|
||||||
@@ -2,6 +2,9 @@
|
|||||||
"extension_name": {
|
"extension_name": {
|
||||||
"message": "Goose Highlighter"
|
"message": "Goose Highlighter"
|
||||||
},
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Выделяйте слова и фразы на любом сайте. Создавайте собственные списки, используйте цвета, импортируйте и экспортируйте данные."
|
||||||
|
},
|
||||||
"select_list": {
|
"select_list": {
|
||||||
"message": "Выберите список:"
|
"message": "Выберите список:"
|
||||||
},
|
},
|
||||||
@@ -85,5 +88,17 @@
|
|||||||
},
|
},
|
||||||
"global_highlight_toggle": {
|
"global_highlight_toggle": {
|
||||||
"message": "Вкл"
|
"message": "Вкл"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Поиск..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Опции"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "С учетом регистра"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Слово целиком"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
104
_locales/tr/messages.json
Normal file
104
_locales/tr/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "Herhangi bir web sitesinde kelimeleri ve ifadeleri vurgulayın. Özel listeler oluşturun, renkler kullanın, içe/dışa aktarın ve daha fazlası."
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "Liste Seç:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "Yeni Liste"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "Listeyi Sil"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "Liste Adı:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "Arka Plan:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "Metin Rengi:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "Vurgulamayı Etkinleştir"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "Kelimeleri buraya yapıştırın"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "Kelimeleri Ekle"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "Seç"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "Sil"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "Devre Dışı Bırak"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "Etkinleştir"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "JSON İçe Aktar"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "JSON Dışa Aktar"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "Varsayılan Liste"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "Yeni Liste"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "aktif"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "Geçersiz JSON dosyası"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "Bu listeyi silmek istediğinizden emin misiniz?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "Seçili kelimeleri silmek istediğinizden emin misiniz?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "Seçimi Kaldır"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "Vurgulama Listeleri"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "Karanlık Mod"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "Liste Ayarları"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "Kelime Listesi"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "Kelimeleri Ekle"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "Etkinleştir"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "Ara..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "Seçenekler"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "Büyük/küçük harf duyarlı"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "Tüm kelimeyle eşleş"
|
||||||
|
}
|
||||||
|
}
|
||||||
104
_locales/zh_CN/messages.json
Normal file
104
_locales/zh_CN/messages.json
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
{
|
||||||
|
"extension_name": {
|
||||||
|
"message": "Goose Highlighter"
|
||||||
|
},
|
||||||
|
"extension_description": {
|
||||||
|
"message": "在任何网站上高亮显示单词和短语。创建自定义列表,使用颜色,导入/导出等功能。"
|
||||||
|
},
|
||||||
|
"select_list": {
|
||||||
|
"message": "选择列表:"
|
||||||
|
},
|
||||||
|
"new_list": {
|
||||||
|
"message": "新建列表"
|
||||||
|
},
|
||||||
|
"delete_list": {
|
||||||
|
"message": "删除列表"
|
||||||
|
},
|
||||||
|
"list_name": {
|
||||||
|
"message": "列表名称:"
|
||||||
|
},
|
||||||
|
"background": {
|
||||||
|
"message": "背景:"
|
||||||
|
},
|
||||||
|
"foreground": {
|
||||||
|
"message": "文字颜色:"
|
||||||
|
},
|
||||||
|
"enable_highlight": {
|
||||||
|
"message": "启用高亮"
|
||||||
|
},
|
||||||
|
"paste_hint": {
|
||||||
|
"message": "在此粘贴单词"
|
||||||
|
},
|
||||||
|
"apply_paste": {
|
||||||
|
"message": "添加单词"
|
||||||
|
},
|
||||||
|
"select_all": {
|
||||||
|
"message": "选择"
|
||||||
|
},
|
||||||
|
"delete_selected": {
|
||||||
|
"message": "删除"
|
||||||
|
},
|
||||||
|
"disable_selected": {
|
||||||
|
"message": "禁用"
|
||||||
|
},
|
||||||
|
"enable_selected": {
|
||||||
|
"message": "启用"
|
||||||
|
},
|
||||||
|
"import_list": {
|
||||||
|
"message": "导入 JSON"
|
||||||
|
},
|
||||||
|
"export_list": {
|
||||||
|
"message": "导出 JSON"
|
||||||
|
},
|
||||||
|
"default_list_name": {
|
||||||
|
"message": "默认列表"
|
||||||
|
},
|
||||||
|
"new_list_name": {
|
||||||
|
"message": "新建列表"
|
||||||
|
},
|
||||||
|
"word_active_label": {
|
||||||
|
"message": "激活"
|
||||||
|
},
|
||||||
|
"invalid_json_error": {
|
||||||
|
"message": "无效的 JSON 文件"
|
||||||
|
},
|
||||||
|
"confirm_delete_list": {
|
||||||
|
"message": "您确定要删除此列表吗?"
|
||||||
|
},
|
||||||
|
"confirm_delete_words": {
|
||||||
|
"message": "您确定要删除选中的单词吗?"
|
||||||
|
},
|
||||||
|
"deselect_all": {
|
||||||
|
"message": "取消选择"
|
||||||
|
},
|
||||||
|
"highlight_lists": {
|
||||||
|
"message": "高亮列表"
|
||||||
|
},
|
||||||
|
"dark_mode": {
|
||||||
|
"message": "暗黑模式"
|
||||||
|
},
|
||||||
|
"list_settings": {
|
||||||
|
"message": "列表设置"
|
||||||
|
},
|
||||||
|
"word_list": {
|
||||||
|
"message": "单词列表"
|
||||||
|
},
|
||||||
|
"add_words": {
|
||||||
|
"message": "添加单词"
|
||||||
|
},
|
||||||
|
"global_highlight_toggle": {
|
||||||
|
"message": "启用"
|
||||||
|
},
|
||||||
|
"search_placeholder": {
|
||||||
|
"message": "搜索..."
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"message": "选项"
|
||||||
|
},
|
||||||
|
"match_case": {
|
||||||
|
"message": "区分大小写"
|
||||||
|
},
|
||||||
|
"match_whole": {
|
||||||
|
"message": "全词匹配"
|
||||||
|
}
|
||||||
|
}
|
||||||
19
main.js
19
main.js
@@ -1,5 +1,7 @@
|
|||||||
let currentLists = [];
|
let currentLists = [];
|
||||||
let isGlobalHighlightEnabled = true;
|
let isGlobalHighlightEnabled = true;
|
||||||
|
let matchCase = false;
|
||||||
|
let matchWhole = false;
|
||||||
|
|
||||||
function escapeRegex(s) {
|
function escapeRegex(s) {
|
||||||
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||||||
@@ -62,7 +64,12 @@ function processNodes() {
|
|||||||
const wordMap = new Map();
|
const wordMap = new Map();
|
||||||
for (const word of activeWords) wordMap.set(word.text.toLowerCase(), word);
|
for (const word of activeWords) wordMap.set(word.text.toLowerCase(), word);
|
||||||
|
|
||||||
const pattern = new RegExp(`(${Array.from(wordMap.keys()).map(escapeRegex).join('|')})`, 'gi');
|
let flags = matchCase ? 'g' : 'gi';
|
||||||
|
let wordsPattern = Array.from(wordMap.keys()).map(escapeRegex).join('|');
|
||||||
|
if (matchWhole) {
|
||||||
|
wordsPattern = `\\b(?:${wordsPattern})\\b`;
|
||||||
|
}
|
||||||
|
const pattern = new RegExp(`(${wordsPattern})`, flags);
|
||||||
|
|
||||||
for (const node of textNodes) {
|
for (const node of textNodes) {
|
||||||
if (!pattern.test(node.nodeValue)) continue;
|
if (!pattern.test(node.nodeValue)) continue;
|
||||||
@@ -102,12 +109,14 @@ function debounce(func, wait) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initial highlight on load
|
// Initial highlight on load
|
||||||
chrome.storage.local.get(["lists", "globalHighlightEnabled"], ({ lists, globalHighlightEnabled }) => {
|
chrome.storage.local.get(["lists", "globalHighlightEnabled", "matchCaseEnabled", "matchWholeEnabled"], ({ lists, globalHighlightEnabled, matchCaseEnabled, matchWholeEnabled }) => {
|
||||||
if (Array.isArray(lists)) setListsAndUpdate(lists);
|
if (Array.isArray(lists)) setListsAndUpdate(lists);
|
||||||
if (globalHighlightEnabled !== undefined) {
|
if (globalHighlightEnabled !== undefined) {
|
||||||
isGlobalHighlightEnabled = globalHighlightEnabled;
|
isGlobalHighlightEnabled = globalHighlightEnabled;
|
||||||
}
|
}
|
||||||
processNodes(); // Initial processing
|
matchCase = !!matchCaseEnabled;
|
||||||
|
matchWhole = !!matchWholeEnabled;
|
||||||
|
processNodes();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Listen for updates from the popup and re-apply highlights
|
// Listen for updates from the popup and re-apply highlights
|
||||||
@@ -119,6 +128,10 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|||||||
} else if (message.type === "GLOBAL_TOGGLE_UPDATED") {
|
} else if (message.type === "GLOBAL_TOGGLE_UPDATED") {
|
||||||
isGlobalHighlightEnabled = message.enabled;
|
isGlobalHighlightEnabled = message.enabled;
|
||||||
processNodes();
|
processNodes();
|
||||||
|
} else if (message.type === "MATCH_OPTIONS_UPDATED") {
|
||||||
|
matchCase = !!message.matchCase;
|
||||||
|
matchWhole = !!message.matchWhole;
|
||||||
|
processNodes();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Goose Highlighter",
|
"name": "__MSG_extension_name__",
|
||||||
"version": "1.5.0",
|
"description": "__MSG_extension_description__",
|
||||||
"description": "Highlight text on web pages",
|
"version": "1.6.0",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"scripting",
|
"scripting",
|
||||||
|
|||||||
143
popup/popup.css
143
popup/popup.css
@@ -7,6 +7,7 @@
|
|||||||
--button-hover: #444;
|
--button-hover: #444;
|
||||||
--button-text: white;
|
--button-text: white;
|
||||||
--accent: #ec9c23;
|
--accent: #ec9c23;
|
||||||
|
--accent-hover: #ffb84d;
|
||||||
--accent-text: #000;
|
--accent-text: #000;
|
||||||
--highlight-tag: #292929;
|
--highlight-tag: #292929;
|
||||||
--highlight-tag-border: #444;
|
--highlight-tag-border: #444;
|
||||||
@@ -18,6 +19,10 @@
|
|||||||
--switch-bg: #444;
|
--switch-bg: #444;
|
||||||
--checkbox-accent: #ec9c23;
|
--checkbox-accent: #ec9c23;
|
||||||
--checkbox-border: #666;
|
--checkbox-border: #666;
|
||||||
|
--scrollbar-bg: var(--section-bg);
|
||||||
|
--scrollbar-thumb: var(--accent);
|
||||||
|
--scrollbar-thumb-hover: var(--accent-hover);
|
||||||
|
--scrollbar-thumb-border: var(--section-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -115,11 +120,40 @@ textarea {
|
|||||||
|
|
||||||
input[type="color"] {
|
input[type="color"] {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: 2px solid var(--input-border);
|
||||||
cursor: pointer;
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 1px 4px rgba(0,0,0,0.10);
|
||||||
width: 36px;
|
width: 36px;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0;
|
||||||
|
transition: border 0.2s, box-shadow 0.2s;
|
||||||
|
appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="color"]::-webkit-color-swatch-wrapper {
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="color"]::-webkit-color-swatch {
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="color"]::-moz-color-swatch {
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="checkbox"] {
|
input[type="checkbox"] {
|
||||||
@@ -128,9 +162,9 @@ input[type="checkbox"] {
|
|||||||
background-color: var(--input-bg);
|
background-color: var(--input-bg);
|
||||||
border: 1px solid var(--checkbox-border);
|
border: 1px solid var(--checkbox-border);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
width: 16px;
|
width: 12px;
|
||||||
height: 16px;
|
height: 12px;
|
||||||
transform: scale(1.2);
|
transform: scale(1);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
@@ -138,10 +172,10 @@ input[type="checkbox"] {
|
|||||||
input[type="checkbox"]:checked::after {
|
input[type="checkbox"]:checked::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2px;
|
top: 1px;
|
||||||
left: 5px;
|
left: 3px;
|
||||||
width: 4px;
|
width: 3px;
|
||||||
height: 9px;
|
height: 7px;
|
||||||
border: solid var(--checkbox-accent);
|
border: solid var(--checkbox-accent);
|
||||||
border-width: 0 2px 2px 0;
|
border-width: 0 2px 2px 0;
|
||||||
transform: rotate(45deg);
|
transform: rotate(45deg);
|
||||||
@@ -223,6 +257,19 @@ button.danger:hover {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button-row label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-row input[type="checkbox"] {
|
||||||
|
margin: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
.color-row {
|
.color-row {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
@@ -236,6 +283,12 @@ button.danger:hover {
|
|||||||
gap: 6px;
|
gap: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#wordSearch{
|
||||||
|
width:100%;
|
||||||
|
margin-bottom:8px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
#wordList {
|
#wordList {
|
||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -381,3 +434,75 @@ label:has(input.switch) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#wordList,
|
||||||
|
body {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: var(--accent) var(--section-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordList::-webkit-scrollbar,
|
||||||
|
body::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
background: var(--section-bg);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordList::-webkit-scrollbar-thumb,
|
||||||
|
body::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--accent);
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 24px;
|
||||||
|
border: 2px solid var(--section-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordList::-webkit-scrollbar-thumb:hover,
|
||||||
|
body::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--accent-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
#wordList::-webkit-scrollbar-corner,
|
||||||
|
body::-webkit-scrollbar-corner {
|
||||||
|
background: var(--section-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--scrollbar-bg: var(--section-bg);
|
||||||
|
--scrollbar-thumb: var(--accent);
|
||||||
|
--scrollbar-thumb-hover: var(--accent-hover);
|
||||||
|
--scrollbar-thumb-border: var(--section-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body, #wordList {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar,
|
||||||
|
body::-webkit-scrollbar,
|
||||||
|
#wordList::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
background: var(--scrollbar-bg);
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar-thumb,
|
||||||
|
body::-webkit-scrollbar-thumb,
|
||||||
|
#wordList::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--scrollbar-thumb);
|
||||||
|
border-radius: 8px;
|
||||||
|
min-height: 24px;
|
||||||
|
border: 2px solid var(--scrollbar-thumb-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar-thumb:hover,
|
||||||
|
body::-webkit-scrollbar-thumb:hover,
|
||||||
|
#wordList::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--scrollbar-thumb-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
html::-webkit-scrollbar-corner,
|
||||||
|
body::-webkit-scrollbar-corner,
|
||||||
|
#wordList::-webkit-scrollbar-corner {
|
||||||
|
background: var(--scrollbar-bg);
|
||||||
|
}
|
||||||
@@ -77,10 +77,16 @@
|
|||||||
<button id="disableSelectedBtn"><span data-i18n="disable_selected">Disable</span></button>
|
<button id="disableSelectedBtn"><span data-i18n="disable_selected">Disable</span></button>
|
||||||
<button id="deleteSelectedBtn" class="danger"><span data-i18n="delete_selected">Delete</span></button>
|
<button id="deleteSelectedBtn" class="danger"><span data-i18n="delete_selected">Delete</span></button>
|
||||||
</div>
|
</div>
|
||||||
|
<input type="text" id="wordSearch" data-i18n="search_placeholder" placeholder="Search..." />
|
||||||
<div id="wordList"></div>
|
<div id="wordList"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div class="section">
|
||||||
|
<h2><i class="fa-solid fa-sliders"></i> <span data-i18n="options">Options</span></h2>
|
||||||
|
<div class="button-row" style="margin-bottom:8px;">
|
||||||
|
<label><input type="checkbox" id="matchCase" /> <span data-i18n="match_case">Match Case</span></label>
|
||||||
|
<label><input type="checkbox" id="matchWhole" /> <span data-i18n="match_whole">Match Whole Word</span></label>
|
||||||
|
</div>
|
||||||
<div class="button-row">
|
<div class="button-row">
|
||||||
<button id="importBtn"><i class="fa-solid fa-upload"></i> <span data-i18n="import_list">Import</span></button>
|
<button id="importBtn"><i class="fa-solid fa-upload"></i> <span data-i18n="import_list">Import</span></button>
|
||||||
<input type="file" id="importInput" accept="application/json" hidden />
|
<input type="file" id="importInput" accept="application/json" hidden />
|
||||||
|
|||||||
@@ -6,11 +6,16 @@ const listActive = document.getElementById("listActive");
|
|||||||
const bulkPaste = document.getElementById("bulkPaste");
|
const bulkPaste = document.getElementById("bulkPaste");
|
||||||
const wordList = document.getElementById("wordList");
|
const wordList = document.getElementById("wordList");
|
||||||
const importInput = document.getElementById("importInput");
|
const importInput = document.getElementById("importInput");
|
||||||
|
const matchCase = document.getElementById("matchCase");
|
||||||
|
const matchWhole = document.getElementById("matchWhole");
|
||||||
let lists = [];
|
let lists = [];
|
||||||
let currentListIndex = 0;
|
let currentListIndex = 0;
|
||||||
let saveTimeout;
|
let saveTimeout;
|
||||||
let selectedCheckboxes = new Set();
|
let selectedCheckboxes = new Set();
|
||||||
let globalHighlightEnabled = true;
|
let globalHighlightEnabled = true;
|
||||||
|
let wordSearchQuery = "";
|
||||||
|
let matchCaseEnabled = false;
|
||||||
|
let matchWholeEnabled = false;
|
||||||
|
|
||||||
function escapeHtml(str) {
|
function escapeHtml(str) {
|
||||||
return str.replace(/[&<>"']/g, function (m) {
|
return str.replace(/[&<>"']/g, function (m) {
|
||||||
@@ -34,7 +39,9 @@ async function debouncedSave() {
|
|||||||
async function save() {
|
async function save() {
|
||||||
await chrome.storage.local.set({
|
await chrome.storage.local.set({
|
||||||
lists: lists,
|
lists: lists,
|
||||||
globalHighlightEnabled: globalHighlightEnabled
|
globalHighlightEnabled: globalHighlightEnabled,
|
||||||
|
matchCaseEnabled,
|
||||||
|
matchWholeEnabled
|
||||||
});
|
});
|
||||||
renderLists();
|
renderLists();
|
||||||
renderWords();
|
renderWords();
|
||||||
@@ -47,6 +54,11 @@ async function save() {
|
|||||||
type: "GLOBAL_TOGGLE_UPDATED",
|
type: "GLOBAL_TOGGLE_UPDATED",
|
||||||
enabled: globalHighlightEnabled
|
enabled: globalHighlightEnabled
|
||||||
});
|
});
|
||||||
|
chrome.tabs.sendMessage(tab.id, {
|
||||||
|
type: "MATCH_OPTIONS_UPDATED",
|
||||||
|
matchCase: matchCaseEnabled,
|
||||||
|
matchWhole: matchWholeEnabled
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -69,10 +81,16 @@ async function updateGlobalToggleState() {
|
|||||||
async function load() {
|
async function load() {
|
||||||
const res = await chrome.storage.local.get({
|
const res = await chrome.storage.local.get({
|
||||||
lists: [],
|
lists: [],
|
||||||
globalHighlightEnabled: true
|
globalHighlightEnabled: true,
|
||||||
|
matchCaseEnabled: false,
|
||||||
|
matchWholeEnabled: false
|
||||||
});
|
});
|
||||||
lists = res.lists;
|
lists = res.lists;
|
||||||
globalHighlightEnabled = res.globalHighlightEnabled !== false; // Default to true if undefined
|
globalHighlightEnabled = res.globalHighlightEnabled !== false;
|
||||||
|
matchCaseEnabled = !!res.matchCaseEnabled;
|
||||||
|
matchWholeEnabled = !!res.matchWholeEnabled;
|
||||||
|
matchCase.checked = matchCaseEnabled;
|
||||||
|
matchWhole.checked = matchWholeEnabled;
|
||||||
|
|
||||||
if (!lists.length) {
|
if (!lists.length) {
|
||||||
lists.push({
|
lists.push({
|
||||||
@@ -108,7 +126,12 @@ function updateListForm() {
|
|||||||
|
|
||||||
function renderWords() {
|
function renderWords() {
|
||||||
const list = lists[currentListIndex];
|
const list = lists[currentListIndex];
|
||||||
const fragment = document.createDocumentFragment();
|
|
||||||
|
let filteredWords = list.words;
|
||||||
|
if (wordSearchQuery.trim()) {
|
||||||
|
const q = wordSearchQuery.trim().toLowerCase();
|
||||||
|
filteredWords = list.words.filter(w => w.wordStr.toLowerCase().includes(q));
|
||||||
|
}
|
||||||
|
|
||||||
const itemHeight = 32;
|
const itemHeight = 32;
|
||||||
const containerHeight = wordList.clientHeight;
|
const containerHeight = wordList.clientHeight;
|
||||||
@@ -116,18 +139,19 @@ function renderWords() {
|
|||||||
const startIndex = Math.floor(scrollTop / itemHeight);
|
const startIndex = Math.floor(scrollTop / itemHeight);
|
||||||
const endIndex = Math.min(
|
const endIndex = Math.min(
|
||||||
startIndex + Math.ceil(containerHeight / itemHeight) + 2,
|
startIndex + Math.ceil(containerHeight / itemHeight) + 2,
|
||||||
list.words.length
|
filteredWords.length
|
||||||
);
|
);
|
||||||
|
|
||||||
wordList.innerHTML = '';
|
wordList.innerHTML = '';
|
||||||
|
|
||||||
const spacer = document.createElement('div');
|
const spacer = document.createElement('div');
|
||||||
spacer.style.position = 'relative';
|
spacer.style.position = 'relative';
|
||||||
spacer.style.height = `${list.words.length * itemHeight}px`;
|
spacer.style.height = `${filteredWords.length * itemHeight}px`;
|
||||||
spacer.style.width = '100%';
|
spacer.style.width = '100%';
|
||||||
|
|
||||||
for (let i = startIndex; i < endIndex; i++) {
|
for (let i = startIndex; i < endIndex; i++) {
|
||||||
const w = list.words[i];
|
const w = filteredWords[i];
|
||||||
|
if (!w) continue;
|
||||||
const container = document.createElement("div");
|
const container = document.createElement("div");
|
||||||
container.style.height = `${itemHeight}px`;
|
container.style.height = `${itemHeight}px`;
|
||||||
container.style.position = 'absolute';
|
container.style.position = 'absolute';
|
||||||
@@ -143,18 +167,20 @@ function renderWords() {
|
|||||||
container.style.background = 'var(--highlight-tag)';
|
container.style.background = 'var(--highlight-tag)';
|
||||||
container.style.border = '1px solid var(--highlight-tag-border)';
|
container.style.border = '1px solid var(--highlight-tag-border)';
|
||||||
|
|
||||||
|
const realIndex = list.words.indexOf(w);
|
||||||
|
|
||||||
const cbSelect = document.createElement("input");
|
const cbSelect = document.createElement("input");
|
||||||
cbSelect.type = "checkbox";
|
cbSelect.type = "checkbox";
|
||||||
cbSelect.className = "word-checkbox";
|
cbSelect.className = "word-checkbox";
|
||||||
cbSelect.dataset.index = i;
|
cbSelect.dataset.index = realIndex;
|
||||||
if (selectedCheckboxes.has(i)) {
|
if (selectedCheckboxes.has(realIndex)) {
|
||||||
cbSelect.checked = true;
|
cbSelect.checked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputWord = document.createElement("input");
|
const inputWord = document.createElement("input");
|
||||||
inputWord.type = "text";
|
inputWord.type = "text";
|
||||||
inputWord.value = w.wordStr;
|
inputWord.value = w.wordStr;
|
||||||
inputWord.dataset.wordEdit = i;
|
inputWord.dataset.wordEdit = realIndex;
|
||||||
inputWord.style.flexGrow = '1';
|
inputWord.style.flexGrow = '1';
|
||||||
inputWord.style.minWidth = '0';
|
inputWord.style.minWidth = '0';
|
||||||
inputWord.style.padding = '4px 8px';
|
inputWord.style.padding = '4px 8px';
|
||||||
@@ -166,7 +192,7 @@ function renderWords() {
|
|||||||
const inputBg = document.createElement("input");
|
const inputBg = document.createElement("input");
|
||||||
inputBg.type = "color";
|
inputBg.type = "color";
|
||||||
inputBg.value = w.background || list.background;
|
inputBg.value = w.background || list.background;
|
||||||
inputBg.dataset.bgEdit = i;
|
inputBg.dataset.bgEdit = realIndex;
|
||||||
inputBg.style.width = '24px';
|
inputBg.style.width = '24px';
|
||||||
inputBg.style.height = '24px';
|
inputBg.style.height = '24px';
|
||||||
inputBg.style.flexShrink = '0';
|
inputBg.style.flexShrink = '0';
|
||||||
@@ -174,7 +200,7 @@ function renderWords() {
|
|||||||
const inputFg = document.createElement("input");
|
const inputFg = document.createElement("input");
|
||||||
inputFg.type = "color";
|
inputFg.type = "color";
|
||||||
inputFg.value = w.foreground || list.foreground;
|
inputFg.value = w.foreground || list.foreground;
|
||||||
inputFg.dataset.fgEdit = i;
|
inputFg.dataset.fgEdit = realIndex;
|
||||||
inputFg.style.width = '24px';
|
inputFg.style.width = '24px';
|
||||||
inputFg.style.height = '24px';
|
inputFg.style.height = '24px';
|
||||||
inputFg.style.flexShrink = '0';
|
inputFg.style.flexShrink = '0';
|
||||||
@@ -189,7 +215,7 @@ function renderWords() {
|
|||||||
const cbActive = document.createElement("input");
|
const cbActive = document.createElement("input");
|
||||||
cbActive.type = "checkbox";
|
cbActive.type = "checkbox";
|
||||||
cbActive.checked = w.active !== false;
|
cbActive.checked = w.active !== false;
|
||||||
cbActive.dataset.activeEdit = i;
|
cbActive.dataset.activeEdit = realIndex;
|
||||||
cbActive.className = "switch";
|
cbActive.className = "switch";
|
||||||
|
|
||||||
activeContainer.appendChild(cbActive);
|
activeContainer.appendChild(cbActive);
|
||||||
@@ -207,7 +233,7 @@ function renderWords() {
|
|||||||
|
|
||||||
const wordCount = document.getElementById('wordCount');
|
const wordCount = document.getElementById('wordCount');
|
||||||
if (wordCount) {
|
if (wordCount) {
|
||||||
wordCount.textContent = list.words.length;
|
wordCount.textContent = filteredWords.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -221,7 +247,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
renderWords();
|
renderWords();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add event listener for the global toggle
|
|
||||||
document.getElementById("globalHighlightToggle").addEventListener('change', function () {
|
document.getElementById("globalHighlightToggle").addEventListener('change', function () {
|
||||||
globalHighlightEnabled = this.checked;
|
globalHighlightEnabled = this.checked;
|
||||||
updateGlobalToggleState();
|
updateGlobalToggleState();
|
||||||
@@ -415,5 +440,20 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
renderWords();
|
renderWords();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const wordSearch = document.getElementById("wordSearch");
|
||||||
|
wordSearch.addEventListener("input", (e) => {
|
||||||
|
wordSearchQuery = e.target.value;
|
||||||
|
renderWords();
|
||||||
|
});
|
||||||
|
|
||||||
|
matchCase.addEventListener('change', () => {
|
||||||
|
matchCaseEnabled = matchCase.checked;
|
||||||
|
save();
|
||||||
|
});
|
||||||
|
matchWhole.addEventListener('change', () => {
|
||||||
|
matchWholeEnabled = matchWhole.checked;
|
||||||
|
save();
|
||||||
|
});
|
||||||
|
|
||||||
load();
|
load();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user