From 284f3d9a327dad9d80bbed89a64335ae1d944ac8 Mon Sep 17 00:00:00 2001 From: Kantine Wrapper Date: Thu, 26 Feb 2026 09:03:07 +0100 Subject: [PATCH] fix: dynamic favicon injection + push main to GitHub (v1.4.25) --- build-bookmarklet.sh | 7 +++++++ changelog.md | 3 +++ version.txt | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build-bookmarklet.sh b/build-bookmarklet.sh index 2942a9d..a26bcd5 100755 --- a/build-bookmarklet.sh +++ b/build-bookmarklet.sh @@ -243,6 +243,13 @@ $CHANGELOG_HTML EOF cat >> "$DIST_DIR/install.html" << INSTALLEOF + // Dynamic favicon injection (overrides proxy defaults like htmlpreview.github.io) + document.querySelectorAll('link[rel*="icon"]').forEach(function(el) { el.remove(); }); + var fi = document.createElement('link'); + fi.rel = 'icon'; + fi.type = 'image/svg+xml'; + fi.href = '$FAVICON_URI'; + document.head.appendChild(fi); document.getElementById('bookmarklet-link').textContent = 'Kantine $VERSION'; diff --git a/changelog.md b/changelog.md index 96a2e57..4e24e43 100755 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## v1.4.25 +- 🐛 **Bugfix**: Favicon wird in `install.html` jetzt zusätzlich per JavaScript injiziert, um Proxy-Dienste wie htmlpreview.github.io zu überschreiben. Release-Script pusht nun auch `main` Branch zu GitHub. + ## v1.4.24 - 🐛 **Bugfix**: Favicon-Encoding korrigiert – `encodeURIComponent` verursachte doppeltes Encoding der Farbcodes (`%23` → `%2523`). Auf Base64 umgestellt, funktioniert nun auch unter Chrome/Windows. diff --git a/version.txt b/version.txt index d1feebb..e12da7b 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v1.4.24 +v1.4.25