Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically extract cookie from Firefox #84

Open
Jak2k opened this issue Mar 15, 2024 · 4 comments
Open

Automatically extract cookie from Firefox #84

Jak2k opened this issue Mar 15, 2024 · 4 comments

Comments

@Jak2k
Copy link

Jak2k commented Mar 15, 2024

As far as I know, Firefox stores it's cookies in a SQLite database. You could display a ff-profile-selector under the manual instructions and then extract the cookie from the selected profile.

@ccgauche
Copy link
Owner

That could be a really good idea haven't yet looked on how to do that but that's definitely an option.

@Jak2k
Copy link
Author

Jak2k commented Mar 16, 2024

If I don't forget it, I'll look up the query today.

@Jak2k
Copy link
Author

Jak2k commented Mar 24, 2024

Which cookies of the 62 are needed? In firefox's database (~/.mozilla/firefox/<PROFILE>/cookies.sqlite) they are are all saved as host = '.youtube.com' in the table moz_cookies:

SELECT * FROM moz_cookies WHERE host = '.youtube.com';

@Minemobs
Copy link

Minemobs commented Aug 3, 2024

I found that this query removes most unnecessary cookies:

SELECT name, value FROM moz_cookies WHERE host '.youtube.com' AND originAttributes = '' AND value != '' AND isSecure = 1;

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

No branches or pull requests

3 participants