Hello: Is there a way to export/import (practically transfer) SELECTED cookies form one firefox (or palemoon) profile to another one? I would like to transfer webpage settings between profiles. I don't want to transfer all cookies, only selected ones. Thanks, Istvan
On 2021-12-06 18:00, Istvan Gabor wrote:
Hello:
Is there a way to export/import (practically transfer) SELECTED cookies form one firefox (or palemoon) profile to another one?
I would like to transfer webpage settings between profiles.
I don't want to transfer all cookies, only selected ones.
I use EditThisCookie on Brave (chromium based). It can export/import specific cookies. There seems to be plenty of similar on firefox. https://addons.mozilla.org/sv-SE/firefox/search/?q=EditThisCookie -- /bengan
Hello, On Mon, 06 Dec 2021, Istvan Gabor wrote:
Is there a way to export/import (practically transfer) SELECTED cookies form one firefox (or palemoon) profile to another one?
I would like to transfer webpage settings between profiles.
I don't want to transfer all cookies, only selected ones.
FF saves cookies in a simple sqlite database named cookies.sqlite in the profile directory. So, you could: - use the 'sqlite3' command line tool to query the one cookie DB and write to the other: ~/.mozilla/firefox/PROFILE_A $ sqlite3 -csv -readonly cookies.sqlite \ 'SELECT * FROM "moz_cookies" WHERE "baseDomain" LIKE "%foo%";' |\ tee /tmp/moz_cookies.csv ~/.mozilla/firefox/PROFILE_B $ sqlite3 cookies.sqlite \ '.import --csv "/tmp/moz_cookies.csv" moz_cookies' It does seem to work to some extent... ;) But in this case, profile A is a much older version of FF than profile B and the latter expects one more column. And the cookie-manager I use in B kid of barfs on the resulting cookies. Deleting the cookies again (e.g. with 'sqlitebrowser cookies.sqlite') fixes things again. I guess you could get colliding IDs too... - you could use sqlitebrowser or some other GUI to export/import selected cookies... Anyway, it's a sqlite DB. Have fun messing with it ;) HTH, -dnh -- Life is full of small and large disappointments, and then you die. -- M. Andrews
Thanks for this $SUBJECT before Christmas. I opened this mail and I was slightly disappointed. Am Dienstag, 7. Dezember 2021, 01:33:13 CET schrieb David Haller:
Hello,
On Mon, 06 Dec 2021, Istvan Gabor wrote:
Is there a way to export/import (practically transfer) SELECTED cookies form one firefox (or palemoon) profile to another one?
I would like to transfer webpage settings between profiles.
I don't want to transfer all cookies, only selected ones.
FF saves cookies in a simple sqlite database named cookies.sqlite in the profile directory.
So, you could:
- use the 'sqlite3' command line tool to query the one cookie DB and write to the other:
~/.mozilla/firefox/PROFILE_A $ sqlite3 -csv -readonly cookies.sqlite \ 'SELECT * FROM "moz_cookies" WHERE "baseDomain" LIKE "%foo%";' |\ tee /tmp/moz_cookies.csv ~/.mozilla/firefox/PROFILE_B $ sqlite3 cookies.sqlite \ '.import --csv "/tmp/moz_cookies.csv" moz_cookies'
It does seem to work to some extent... ;) But in this case, profile A is a much older version of FF than profile B and the latter expects one more column. And the cookie-manager I use in B kid of barfs on the resulting cookies.
Deleting the cookies again (e.g. with 'sqlitebrowser cookies.sqlite') fixes things again.
I guess you could get colliding IDs too...
- you could use sqlitebrowser or some other GUI to export/import selected cookies...
Anyway, it's a sqlite DB. Have fun messing with it ;)
HTH, -dnh
-- Best Regards - Mit freundlichen Grüßen, Markus Feilner, Feilner IT - 20 years of open services - ------------------------- Get vaccinated, now. It's a pandemic, stupid. Save lifes. No excuses. https://www.gummipunkt.eu/wissenschaft-ist-was-wissen-schafft/ ------------------------- Digitale Souveränität, Nachhaltigkeit, Dokumentation Linux, Security, Strategy, Politics, Journalism, Networking. https://www.feilner-it.net, 93059 Regensburg Wöhrdstr. 10, +49 170 302 7092 (+Signal) PGP: 40A3C306F96133067C11CFD9A958A906268C9F0A http://www.feilner-it.net/files/MFpub.asc Xing: http://www.xing.com/profile/Markus_Feilner LinkedIn: https://www.linkedin.com/in/markusfeilner @mfeilner: Matrix, Jabber, Skype, Twitter, Diaspora, ...
participants (4)
-
Bengt Gördén
-
David Haller
-
Istvan Gabor
-
Markus Feilner