From 659bcb8f5169ddc84594672107712aacf4c98b06 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Mon, 23 May 2022 12:21:04 +0200 Subject: [PATCH] Link iCalendar files with the webcal:// protocol --- footer.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/footer.html b/footer.html index 58992d2..0a52902 100644 --- a/footer.html +++ b/footer.html @@ -61,6 +61,12 @@ }); } }); + + [...document.querySelectorAll(".link a")].forEach(link => { + if (link.href.endsWith(".ics")) { + link.href = link.href.replace(/https?/, "webcal"); + } + })