Skip to content

feat(settings): browser-aware "get the cookies.txt extension" link#60

Merged
windoze95 merged 1 commit into
mainfrom
feature/cookie-extension-link
Jun 29, 2026
Merged

feat(settings): browser-aware "get the cookies.txt extension" link#60
windoze95 merged 1 commit into
mainfrom
feature/cookie-extension-link

Conversation

@windoze95

Copy link
Copy Markdown
Owner

What

Follow-up to the cookie-settings UI (#59): in the YouTube Account panel, add a one-tap link to install the "Get cookies.txt LOCALLY" extension, pointing at the right store for the browser viewing the web app:

  • Chrome / Edge / Chromium → Chrome Web Store
  • Firefox → Firefox Add-ons
  • Safari → the project repo (the extension isn't on Safari)

How

A tiny conditional-import helper (browser_link.dart + _stub + _web): the web impl reads navigator.userAgent and uses window.open via package:web (now a direct dep, was transitive); the native stub is a no-op. The button only renders on web (kIsWeb) — you install a browser extension in the desktop browser the web app is running in, not the iOS app.

Verification

flutter analyze --fatal-infos --fatal-warnings → No issues; flutter test156 passed; flutter build web → succeeds (web interop compiles).

🤖 Generated with Claude Code

In the YouTube Account panel (web), add a one-tap link to install the
"Get cookies.txt LOCALLY" extension, pointing at the right store for the browser
viewing the web app: Chrome Web Store for Chrome/Edge/Chromium, Firefox Add-ons
for Firefox, the project repo for Safari (unsupported there).

Browser detection + open-in-new-tab live in a small conditional-import helper
(web uses package:web's navigator.userAgent / window.open; native is a no-op),
so the button only shows on web (kIsWeb) — you install extensions in the desktop
browser the web app runs in.

analyze clean, 156 tests pass, flutter build web succeeds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@windoze95 windoze95 merged commit 8c309ff into main Jun 29, 2026
7 checks passed
@windoze95 windoze95 deleted the feature/cookie-extension-link branch June 29, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant