diff --git a/AI_INIT.md b/AI_INIT.md index 3580528..85c3323 100644 --- a/AI_INIT.md +++ b/AI_INIT.md @@ -98,6 +98,7 @@ The following features are critical and must not be removed or fundamentally alt > [!CAUTION] > **AI AGENTS MUST FOLLOW THIS EXACT SEQUENCE WHEN RELEASING A NEW VERSION OR TAGGING.** > The CI pipeline automatically injects the version from the git tag into `manifest.base.json`, `shared/constants.js`, and `package.json`. You do NOT need to manually bump version numbers. +> - **Website Versioning**: **NEVER** manually modify the version fallback strings in `website/index.html`. The website dynamically fetches the latest version and release date from `website/version.json` at runtime using `website/app.js`. Manual bumps in the HTML file are completely redundant and should be avoided. 1. **MANDATORY SYNTAX CHECK**: Before staging, committing, or pushing any changes, you **MUST** run a syntax validation check using `node -c` on every single modified JavaScript file (e.g., `node -c extension/background.js` and `node -c extension/content.js`). **NEVER** commit or push code that fails this check. 2. Commit all verified code changes and push to `main`. 3. Create and push a new tag. **MANDATORY**: Tags MUST start with a `v` (e.g., `v1.4.0`). The GitHub Actions release workflow is strictly configured to ignore any tags without the `v` prefix. diff --git a/website/app.js b/website/app.js index b9d3fdf..f34abc2 100644 --- a/website/app.js +++ b/website/app.js @@ -71,11 +71,26 @@ document.addEventListener('DOMContentLoaded', () => { if (actions) { if (!isInstalled) { - actions.innerHTML = ` - GET IT ON CHROME WEBSTORE - Download via GitHub -
The extension is required to join and sync videos.
- `; + const isFirefox = navigator.userAgent.includes('Firefox'); + if (isFirefox) { + actions.innerHTML = ` + GET IT ON MOZILLA ADD-ONS + Download via GitHub ++ The extension is required to join and sync videos. + Die Erweiterung ist erforderlich, um beizutreten und Videos zu synchronisieren. +
+ `; + } else { + actions.innerHTML = ` + GET IT ON CHROME WEBSTORE + Download via GitHub ++ The extension is required to join and sync videos. + Die Erweiterung ist erforderlich, um beizutreten und Videos zu synchronisieren. +
+ `; + } } else { actions.innerHTML = `New in v1.3.1: Perfectly sync series binges. All peers wait until everyone has loaded the next episode.
-Neu in v1.3.1: Perfekt synchronisiertes Serien-Bingeing. Alle warten, bis jeder die nächste Episode geladen hat.
+Perfectly sync series binges. All peers wait until everyone has loaded the next episode.
+Perfekt synchronisiertes Serien-Bingeing. Alle warten, bis jeder die nächste Episode geladen hat.
Add KoalaSync to your browser from the Chrome Web Store or download the latest developer ZIP from GitHub.
-Fügen Sie KoalaSync aus dem Chrome Web Store zu Ihrem Browser hinzu oder laden Sie die neueste Entwickler-ZIP von GitHub herunter.
+Add KoalaSync to your browser from the Chrome Web Store, Firefox Add-ons, or download the latest developer ZIP from GitHub.
+Füge KoalaSync aus dem Chrome Web Store, den Firefox Add-ons oder über die Entwickler-ZIP von GitHub zu deinem Browser hinzu.