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