mosix 6cbeb013ba Migrate to new cookie scheme | 4 years ago | |
---|---|---|
src | 4 years ago | |
tests | 4 years ago | |
.gitignore | 6 years ago | |
README.md | 5 years ago | |
meson.build | 5 years ago |
Cookiejar is build to import and export cookies from your browser. Usefull if you want to get netflix from one computer to another.
If you are cool, you write some code for chrome. Code is written in Vala. See https://wiki.gnome.org/Projects/Vala and https://valadoc.org. This software is for everybody. Fell free to do whatever you want.
Dependencies:
git clone git@github.com:excurs0r/cookiejar.git
cd cookiejar
meson build
cd build
ninja
ninja test
./cookiejar
will tell you this:
cookiejar list profiles
cookiejar list cookies
cookiejar search <someWhat>
cookiejar export <someWhat> (search and return sql insert query)
Exporting into sql file: ./cookiejar export netflix > netflix.sql
And import it: sqlite3 ~/.mozilla/firefox/[profile]/cookies.sqlite < netflix.sql
MAGIC \o/
➜ build git:(master) sqlite3 ~/.mozilla/firefox/profile/cookies.sqlite < netflix.sql
Error: near line 1: UNIQUE constraint failed: moz_cookies.id
Error: near line 4: UNIQUE constraint failed: moz_cookies.id
Error: near line 7: UNIQUE constraint failed: moz_cookies.id
Error: near line 13: UNIQUE constraint failed: moz_cookies.id
Error: near line 16: UNIQUE constraint failed: moz_cookies.id
Error: near line 19: UNIQUE constraint failed: moz_cookies.id
Error: near line 25: UNIQUE constraint failed: moz_cookies.id
➜ build git:(master) ./cookiejar delete netflix
Deleted 15 cookies
➜ build git:(master) sqlite3 ~/.mozilla/firefox/h1plaa1m.default-1558295120780/cookies.sqlite < netflix.sql