diff --git a/_locales/de/messages.json b/_locales/de/messages.json index e1c8039..f614da5 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -131,10 +131,6 @@ "message": "Konfiguration exportieren", "description": "Export configuration button" }, - "config export link": { - "message": "Bitte speichern Sie diese JSON-Datei:", - "description": "Message with link to JSON configuration blob. Make sure to include the id when translating!" - }, "select import file": { "message": "Sicherungsdatei zum Import auswählen", "description": "File selector for configration import" diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 03f6240..3941b44 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -143,10 +143,6 @@ "message": "Export configuration", "description": "Export configuration button" }, - "config export link": { - "message": "Please save this JSON file:", - "description": "Message with link to JSON configuration blob. Make sure to include the id when translating!" - }, "select import file": { "message": "Choose backup file to import", "description": "File selector for configration import" diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index ce6f374..1989de6 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -143,10 +143,6 @@ "message": "Экспорт конфигурации", "description": "Export configuration button" }, - "config export link": { - "message": "Сохраните этот JSON-файл:", - "description": "Message with link to JSON configuration blob. Make sure to include the id when translating!" - }, "select import file": { "message": "Выберите файл резервной копии для импорта", "description": "File selector for configration import" diff --git a/options.html b/options.html index dabf13a..2d127df 100644 --- a/options.html +++ b/options.html @@ -85,10 +85,6 @@

config backup title

-

diff --git a/options.js b/options.js index 2d76acd..0f111ee 100644 --- a/options.js +++ b/options.js @@ -237,12 +237,11 @@ function exportConfig() let blob = new Blob([JSON.stringify(exportConf, null, 2)], { type: "application/json" }); let url = URL.createObjectURL(blob); - let link = document.querySelector("#export_blob"); + let link = document.createElement("a"); link.href = url; let date = new Date().toISOString().replaceAll(":", "_"); link.download = `referer_mod_config-${date}.json`; - link.innerText = `referer_mod_config-${date}.json`; - document.querySelector("#export_text").hidden = false; + link.dispatchEvent(new MouseEvent("click")); }, null); }