Skip to content

feat: Add preferences cookie URL to import and export preferences#5565

Draft
Fijxu wants to merge 1 commit intoiv-org:masterfrom
Fijxu:preferences-cookie-url
Draft

feat: Add preferences cookie URL to import and export preferences#5565
Fijxu wants to merge 1 commit intoiv-org:masterfrom
Fijxu:preferences-cookie-url

Conversation

@Fijxu
Copy link
Member

@Fijxu Fijxu commented Dec 14, 2025

Adds a preferences query parameter to the preferences page to import preferences and it also displays and URL to export the preferences to copy and paste it anywhere:

image

Any suggestions are appreciated because looks kinda off to me.

@Fijxu Fijxu requested a review from unixfox December 14, 2025 18:49
@Fijxu Fijxu requested a review from SamantazFox as a code owner December 14, 2025 18:49
@unixfox
Copy link
Member

unixfox commented Dec 18, 2025

The UI is a bit odd. Sounds like a weird "hacker" interface at the end of the preferences page.

@SamantazFox
Copy link
Member

SamantazFox commented Feb 26, 2026

Any suggestions are appreciated because looks kinda off to me.

Maybe something like what DDG does?

Screenshot of DuckDuckGo's settings page with the 'Show Bookmarklet and Settings Data' button highlighted Screenshot of the interface that appears when the 'Show Bookmarklet and Settings Data' button is clicked. The interface contains a Bookmarklet URL, the settings in JSON format followed by a small paragraph that explains how this works, with a link to the documentation for the various settings

You could put the cookie value (JSON) directly, and as for the bookmarklet option, you could pass the various options to /preferences as URL parameters.

By the way, instead of adding a ton of dedicated logic for that in show(), you can simply put the URL query parameters (env.params.query) in the body (env.params.body) and chain a call to the update() handler. A similar thing is done for the download handler in routes/watch.cr.

Maybe offer the option of using redirect.invidious.io as a "portal" for the favorite, so this also works cross instance?

@Fijxu Fijxu marked this pull request as draft February 26, 2026 18:30
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.

3 participants