YTCF ships from a single active line.
- Work on
master. git fetch hc- If shared chat runtime behavior changed, merge
hc/mainintomasterfirst. - Resolve conflicts in YTCF terms.
- Validate locally.
- Push
master. - Tag and publish the release from
master.
Clean reinstall if Node or dependencies look stale:
rm -rf node_modules
n exec 22.21.1 npm install --forceBuild both targets:
n exec 22.21.1 npm run build:chrome
n exec 22.21.1 npm run build:firefoxOptional combined build:
n exec 22.21.1 npm run buildRuntime smoke in Chromium:
CHROME_BIN=/snap/bin/chromium bash scripts/codex-dev.sh go-testIf the helper is flaky under snap Chromium, use the direct manual smoke command:
rm -rf /tmp/ytcf-manual-profile
xvfb-run -a /snap/bin/chromium \
--disable-gpu \
--ozone-platform=headless \
--remote-debugging-port=9222 \
--user-data-dir=/tmp/ytcf-manual-profile \
--disable-extensions-except="$PWD/build" \
--load-extension="$PWD/build" \
--no-first-run \
--no-default-browser-check \
--disable-background-timer-throttling \
--disable-renderer-backgrounding \
--disable-dev-shm-usage \
--disable-features=IsolateOrigins,site-per-process,TranslateUI \
--disable-web-security \
--allow-running-insecure-content \
--allow-insecure-localhost \
--no-sandbox \
--disable-setuid-sandbox \
--noerrdialogs \
--disable-notifications \
--disable-translate \
--disable-infobars \
--autoplay-policy=no-user-gesture-required \
"https://www.youtube.com/watch?v=X4VbdwhkE10"Build output layout:
- Chrome unpacked extension:
build/ - Firefox unpacked extension:
build/firefox/ - release ZIPs:
build/YtcFilter-chrome.zipandbuild/YtcFilter-firefox.zip
Recommended spot checks after a shared chat runtime sync:
- setup flow still opens
- options page still renders filters / archives / other tabs
hyperchat.htmlstill renders the filtered panel UI- native YouTube chat still gets the YTCF button bar
- block/report actions still work from the message menu
- filter edits should be retested only after reloading/remounting the panel; mounted sessions do not live-patch by design
- Release version is driven by the tag.
- The release workflow strips the leading
vand passes the result asVERSION. vite.config.tswrites thatVERSIONinto the built extension manifest.- Practical rule:
- tag
v3.0.7builds extension version3.0.7
- tag
package.json is not the authoritative release number for published builds here.
- Workflow:
.github/workflows/release.yml - Trigger:
- GitHub release event
published - optional
workflow_dispatchwith ataginput for rebuilds
- GitHub release event
- Assets uploaded:
YtcFilter-Chrome.zipYtcFilter-Firefox.zip
- In-product changelog (
src/components/changelog/YtcFilterChangelog.svelte):- single line, plain text only (no HTML, no lists)
- user-facing only
- extremely short (one clause)
- start with lowercase unless a proper noun forces capitalization
- do not use
/separators - example:
fix visual conflicts w/ YT
- GitHub release notes must match the existing format:
## Here's what's new in vX.Y.Z:
- fix visual conflicts w/ YT- Make sure
mastercontains the intended YTCF changes and any needed shared chat runtime sync. - Run the local validation commands above.
- Push
master. - Create and push the release tag:
git tag vX.Y.Zgit push origin vX.Y.Z
- Publish the GitHub release for that tag.
- Confirm the release workflow uploads both ZIP assets.
If the tag already exists and you only need to rebuild assets:
- Ensure the tag points at the intended commit.
- Use the
Latest Release Buildworkflow withworkflow_dispatch. - Pass the existing tag name, for example:
v3.0.7
The workflow checks out that tag and replaces the uploaded assets.
Use this when the notes/changelog were wrong and you want a clean rebuild.
- Delete the GitHub release and delete the tag:
gh release delete vX.Y.Z-betaN --cleanup-tag -y- Recreate the tag at the intended commit and push it:
git tag -f vX.Y.Z-betaN <commit>
git push -f origin vX.Y.Z-betaN- Recreate the pre-release with the correct notes (tag must exist first):
gh release create vX.Y.Z-betaN --title vX.Y.Z-betaN --prerelease --notes "## Here's what's new in vX.Y.Z-betaN:\n- fix visual conflicts w/ YT\n"- Confirm the
Latest Release Buildworkflow uploads both ZIP assets.