feat(settings): browser-aware "get the cookies.txt extension" link#60
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
How
A tiny conditional-import helper (
browser_link.dart+_stub+_web): the web impl readsnavigator.userAgentand useswindow.openviapackage: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 test→ 156 passed;flutter build web→ succeeds (web interop compiles).🤖 Generated with Claude Code