From 1ceebdb1b6eaf0b9d57285b4e3747e6bbe658010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Nilsen?= Date: Thu, 29 Aug 2024 11:25:34 +0200 Subject: [PATCH] nicer favorite menu --- yr.user.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/yr.user.js b/yr.user.js index e268b52..a458459 100644 --- a/yr.user.js +++ b/yr.user.js @@ -38,6 +38,12 @@ "nb": "kart/radar", "nn": "kart/radar", "sme": "kárta/rádár" + }, + "myPlaces": { + "en": "My locations", + "nb": "Mine steder", + "nn": "Mine stader", + "sme": "Mu báikkit" } }; @@ -70,9 +76,9 @@ const locationPromises = combinedLocations.map(id => fetch(`https://www.yr.no/api/v0/locations/${id}?language=${lang_code}`).then(response => response.json())); const locations = await Promise.all(locationPromises); - menu.innerHTML = '