Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/acf-extension/src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import registerContextMenus from './context-menu';
import { auth } from './firebase';
import { googleAnalytics } from './google-analytics';
import { TabsMessenger } from './tab';
import './watch-url-change';

self['XMLHttpRequest'] = XMLHttpRequest;

Expand Down
2 changes: 1 addition & 1 deletion apps/acf-extension/src/content_scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function loadConfig(loadType: ELoadTypes) {
try {
new ConfigStorage().getConfig().then(async ({ autoConfig, manualConfigs }: GetConfigResult) => {
if (autoConfig) {
if (autoConfig.loadType === loadType || loadType === ELoadTypes.URL_CHANGE) {
if (autoConfig.loadType === loadType || (autoConfig.triggerUrlChange && loadType === ELoadTypes.URL_CHANGE)) {
const { host } = document.location;
Logger.color(chrome.runtime.getManifest().name, LoggerColor.PRIMARY, 'debug', host, loadType);
await ConfigProcessor.checkStartType(manualConfigs, autoConfig);
Expand Down
25 changes: 24 additions & 1 deletion apps/acf-i18n/src/locales/ar/web.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
"title": "إزالة الإجراء",
"message": "هل أنت متأكد من إزالة الإجراء [{{name}}]؟"
}
},
"userscript": {
"remove": {
"title": "إزالة نص المستخدم",
"message": "هل أنت متأكد من إزالة نص المستخدم [{{name}}]؟"
}
}
},
"modal": {
Expand Down Expand Up @@ -160,6 +166,8 @@
"document": "وثيقة",
"hotkey": "مفتاح الاختصار",
"documentHint": "يقوم متصفح <b>المستندات</b> بتحميل الامتداد قبل تحميل البرامج النصية والصور (أسرع) (غير آمن)",
"triggerUrlChange": "تشغيل عند تغيير عنوان URL",
"triggerUrlChangeHint": "سيؤدي <b>تغيير عنوان URL</b> إلى تشغيل التكوين إذا تم تغيير عنوان URL دون إعادة تحميل الصفحة (كما هو الحال في SPA)",
"urlMatch": "مطابقة عنوان URL",
"regex": "التعبير العادي",
"exact": "بالضبط"
Expand Down Expand Up @@ -218,6 +226,13 @@
"refresh": "ينعش",
"goto": "الانتقال إلى الإجراء"
}
},
"schedule": {
"title": "جدول",
"info": "تكوين الجدول الزمني لتاريخ ووقت محددين",
"date": "تاريخ",
"time": "وقت",
"repeat": "يكرر"
}
},
"message": {
Expand All @@ -229,7 +244,8 @@
"removeAction": "تمت إزالة الإجراء بنجاح!",
"actionAddon": "تم حفظ الملحق بنجاح!",
"actionStatement": "تم حفظ حالة الإجراء بنجاح!",
"actionSettings": "تم حفظ إعدادات الإجراء بنجاح!"
"actionSettings": "تم حفظ إعدادات الإجراء بنجاح!",
"schedule": "تم حفظ الجدول بنجاح!"
},
"configuration": {
"title": "إعدادات",
Expand Down Expand Up @@ -263,6 +279,9 @@
"interval": "يُسمح فقط بالأرقام الصحيحة",
"url": "عنوان URL مطلوب",
"initWait": "يُسمح فقط بالأرقام الصحيحة",
"scheduleDate": "يجب أن يتطابق تاريخ الجدول الزمني مع تنسيق YYYY-MM-DD (2025-12-01)",
"scheduleTime": "يجب أن يتطابق وقت الجدول الزمني مع تنسيق HH:mm:ss.sss (23:59:59.000)",
"scheduleRepeat": "يجب أن يكون تكرار الجدول رقمًا فقط",
"startTime": "يجب أن يتطابق وقت البدء مع تنسيق HH:mm:ss:fff (12:12:12:000)",
"json": "Json المحدد غير صالح",
"hotKey": "الحرف المفرد بدون Ctrl/Command غير صالح",
Expand All @@ -288,6 +307,9 @@
"repeat": "يكرر",
"repeatInterval": "الفاصل الزمني R"
},
"userscript": {
"add": "إضافة نص المستخدم"
},
"popover": {
"valueExtractor": {
"title": "أمثلة"
Expand All @@ -311,6 +333,7 @@
"download": "تحميل",
"disabled": "عاجز",
"sec": "ثانية",
"min": "دقيقة",
"no": "لا",
"yes": "نعم",
"local": "محلي",
Expand Down
25 changes: 24 additions & 1 deletion apps/acf-i18n/src/locales/de/web.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
"title": "Aktion entfernen",
"message": "Möchten Sie die Aktion [{{name}}] wirklich entfernen?"
}
},
"userscript": {
"remove": {
"title": "Benutzerskript entfernen",
"message": "Möchten Sie das Benutzerskript [{{name}}] wirklich entfernen?"
}
}
},
"modal": {
Expand Down Expand Up @@ -160,6 +166,8 @@
"document": "Dokumentieren",
"hotkey": "Tastenkombination",
"documentHint": "<b>Der Dokumentenbrowser</b> lädt die Erweiterung, bevor Skripte und Bilder geladen werden (schneller) (unsicher)",
"triggerUrlChange": "Auslöser bei URL-Änderung",
"triggerUrlChangeHint": "<b>„URL-Änderung auslösen“</b> löst die Konfiguration aus, wenn die URL ohne Neuladen der Seite geändert wird (wie in SPA).",
"urlMatch": "URL-Übereinstimmung",
"regex": "Regulärer Ausdruck",
"exact": "Genau"
Expand Down Expand Up @@ -218,6 +226,13 @@
"refresh": "Aktualisierung",
"goto": "Gehe zu Aktion"
}
},
"schedule": {
"title": "Zeitplan",
"info": "Zeitplankonfiguration für bestimmtes Datum und Uhrzeit",
"date": "Datum",
"time": "Zeit",
"repeat": "Wiederholen"
}
},
"message": {
Expand All @@ -229,7 +244,8 @@
"removeAction": "Aktion erfolgreich entfernt!",
"actionAddon": "Add-on erfolgreich gespeichert!",
"actionStatement": "Aktionsbedingung erfolgreich gespeichert!",
"actionSettings": "Aktionseinstellungen erfolgreich gespeichert!"
"actionSettings": "Aktionseinstellungen erfolgreich gespeichert!",
"schedule": "Zeitplan erfolgreich gespeichert!"
},
"configuration": {
"title": "Aufbau",
Expand Down Expand Up @@ -263,6 +279,9 @@
"interval": "Es sind nur gültige Nummern zulässig.",
"url": "URL ist erforderlich",
"initWait": "Es sind nur gültige Nummern zulässig.",
"scheduleDate": "Das geplante Datum muss dem Format JJJJ-MM-TT (01.12.2025) entsprechen.",
"scheduleTime": "Die geplante Zeit muss dem Format HH:mm:ss.sss (23:59:59.000) entsprechen",
"scheduleRepeat": "Die Wiederholung des Zeitplans sollte nur eine Zahl sein",
"startTime": "Die Startzeit muss dem Format HH:mm:ss:fff (12:12:12:000) entsprechen.",
"json": "Das ausgewählte JSON ist ungültig",
"hotKey": "Ein einzelner Buchstabe ohne Strg/Befehl ist ungültig",
Expand All @@ -288,6 +307,9 @@
"repeat": "Wiederholen",
"repeatInterval": "R-Intervall"
},
"userscript": {
"add": "Benutzerskript hinzufügen"
},
"popover": {
"valueExtractor": {
"title": "Beispiele"
Expand All @@ -311,6 +333,7 @@
"download": "Herunterladen",
"disabled": "Deaktiviert",
"sec": "Sek",
"min": "Min",
"no": "NEIN",
"yes": "Ja",
"local": "LOKAL",
Expand Down
13 changes: 3 additions & 10 deletions apps/acf-i18n/src/locales/en/web.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@
"document": "Document",
"hotkey": "Hotkey",
"documentHint": "<b>Document</b> browser loads extension before scripts and images are loaded (faster)(unsafe)",
"triggerUrlChange": "Trigger on URL Change",
"triggerUrlChangeHint": "<b>Trigger URL Change</b> will trigger configuration if URL is changed without page reload (like in SPA)",
"urlMatch": "URL Match",
"regex": "Regex",
"exact": "Exact"
Expand Down Expand Up @@ -306,16 +308,7 @@
"repeatInterval": "R-Interval"
},
"userscript": {
"title": "User Script",
"add": "Add User Script",
"addBefore": "Add User Script Above",
"addAfter": "Add User Script Below",
"remove": "Remove User Script",
"disable": "Disable User Script",
"enable": "Enable User Script",
"name": "Name",
"value": "Value",
"script": "Script"
"add": "Add User Script"
},
"popover": {
"valueExtractor": {
Expand Down
25 changes: 24 additions & 1 deletion apps/acf-i18n/src/locales/es/web.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
"title": "Eliminar acción",
"message": "¿Estás seguro de eliminar la acción [{{name}}]?"
}
},
"userscript": {
"remove": {
"title": "Eliminar script de usuario",
"message": "¿Estás seguro de eliminar el script de usuario [{{name}}]?"
}
}
},
"modal": {
Expand Down Expand Up @@ -160,6 +166,8 @@
"document": "Documento",
"hotkey": "tecla de acceso rápido",
"documentHint": "El navegador <b>de documentos</b> carga la extensión antes de que se carguen los scripts y las imágenes (más rápido) (inseguro)",
"triggerUrlChange": "Disparador al cambiar la URL",
"triggerUrlChangeHint": "<b>El cambio de URL</b> activará la configuración si se cambia la URL sin recargar la página (como en SPA)",
"urlMatch": "Coincidencia de URL",
"regex": "expresión regular",
"exact": "Exacto"
Expand Down Expand Up @@ -218,6 +226,13 @@
"refresh": "Actualizar",
"goto": "Ir a acción"
}
},
"schedule": {
"title": "Cronograma",
"info": "Configuración de programación para fecha y hora específicas",
"date": "Fecha",
"time": "Tiempo",
"repeat": "Repetir"
}
},
"message": {
Expand All @@ -229,7 +244,8 @@
"removeAction": "¡La acción se eliminó correctamente!",
"actionAddon": "¡Complemento guardado exitosamente!",
"actionStatement": "¡Condición de acción guardada exitosamente!",
"actionSettings": "¡La configuración de acción se guardó correctamente!"
"actionSettings": "¡La configuración de acción se guardó correctamente!",
"schedule": "¡Horario guardado exitosamente!"
},
"configuration": {
"title": "Configuración",
Expand Down Expand Up @@ -263,6 +279,9 @@
"interval": "Sólo se permiten números válidos",
"url": "La URL es obligatoria",
"initWait": "Sólo se permiten números válidos",
"scheduleDate": "La fecha programada debe coincidir con el formato AAAA-MM-DD (01/12/2025)",
"scheduleTime": "La hora programada debe coincidir con el formato HH:mm:ss.sss (23:59:59.000)",
"scheduleRepeat": "La repetición del programa debe ser solo numérica",
"startTime": "La hora de inicio debe coincidir con el formato HH:mm:ss:fff (12:12:12:000)",
"json": "El Json seleccionado no es válido",
"hotKey": "Una sola letra sin Ctrl/Comando no es válida",
Expand All @@ -288,6 +307,9 @@
"repeat": "Repetir",
"repeatInterval": "Intervalo R"
},
"userscript": {
"add": "Agregar script de usuario"
},
"popover": {
"valueExtractor": {
"title": "Ejemplos"
Expand All @@ -311,6 +333,7 @@
"download": "Descargar",
"disabled": "Desactivado",
"sec": "segundo",
"min": "mín.",
"no": "No",
"yes": "Sí",
"local": "LOCAL",
Expand Down
25 changes: 24 additions & 1 deletion apps/acf-i18n/src/locales/fi/web.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
"title": "Poista toiminto",
"message": "Haluatko varmasti poistaa toiminnon [{{name}}]?"
}
},
"userscript": {
"remove": {
"title": "Poista käyttäjäskripti",
"message": "Haluatko varmasti poistaa [{{name}}] käyttäjäskriptin?"
}
}
},
"modal": {
Expand Down Expand Up @@ -160,6 +166,8 @@
"document": "Asiakirja",
"hotkey": "Pikanäppäin",
"documentHint": "<b>Asiakirjaselain</b> lataa laajennuksen ennen skriptien ja kuvien lataamista (nopeammin) (vaarallinen)",
"triggerUrlChange": "URL-osoitteen muutoksen laukaisema",
"triggerUrlChangeHint": "<b>URL-osoitteen muutoksen laukaiseva</b> toiminto laukaisee määritykset, jos URL-osoitetta muutetaan ilman sivun uudelleenlatausta (kuten SPA:ssa)",
"urlMatch": "URL-osuma",
"regex": "Regex",
"exact": "Tarkka"
Expand Down Expand Up @@ -218,6 +226,13 @@
"refresh": "virkistää",
"goto": "Siirry toimintoon"
}
},
"schedule": {
"title": "Ajoittaa",
"info": "Aikatauluta määritys tietylle päivämäärälle ja kellonajalle",
"date": "Päivämäärä",
"time": "Aika",
"repeat": "Toistaa"
}
},
"message": {
Expand All @@ -229,7 +244,8 @@
"removeAction": "Toiminto poistettu onnistuneesti!",
"actionAddon": "Lisäys tallennettu onnistuneesti!",
"actionStatement": "Toimintoehto tallennettu onnistuneesti!",
"actionSettings": "Toimintoasetukset tallennettu onnistuneesti!"
"actionSettings": "Toimintoasetukset tallennettu onnistuneesti!",
"schedule": "Aikataulu tallennettu onnistuneesti!"
},
"configuration": {
"title": "Kokoonpano",
Expand Down Expand Up @@ -263,6 +279,9 @@
"interval": "Vain kelvolliset numerot ovat sallittuja",
"url": "URL-osoite vaaditaan",
"initWait": "Vain kelvolliset numerot ovat sallittuja",
"scheduleDate": "Aikataulun päivämäärän tulee olla muodossa VVVV-KK-PP (2025-12-01)",
"scheduleTime": "Aikataulun ajan tulee olla muodossa HH:mm:ss.sss (23:59:59.000)",
"scheduleRepeat": "Aikataulun toiston tulisi olla vain numero",
"startTime": "Aloitusajan tulee vastata muotoa HH:mm:ss:fff (12:12:12:000)",
"json": "Valittu Json ei kelpaa",
"hotKey": "Yksittäinen kirjain ilman Ctrl/komentoa ei kelpaa",
Expand All @@ -288,6 +307,9 @@
"repeat": "Toistaa",
"repeatInterval": "R-väli"
},
"userscript": {
"add": "Lisää käyttäjäskripti"
},
"popover": {
"valueExtractor": {
"title": "Esimerkkejä"
Expand All @@ -311,6 +333,7 @@
"download": "ladata",
"disabled": "Liikuntarajoitteinen",
"sec": "sek",
"min": "min",
"no": "Ei",
"yes": "Joo",
"local": "PAIKALLINEN",
Expand Down
Loading
Loading