No Description

mosix 6cbeb013ba Migrate to new cookie scheme 3 years ago
src 6cbeb013ba Migrate to new cookie scheme 3 years ago
tests 6cbeb013ba Migrate to new cookie scheme 3 years ago
.gitignore 466484e442 gitignore: ignore c files 5 years ago
README.md 3d34be485e Just remembered it can delete 4 years ago
meson.build 1d58b68a26 Clean importer attempt 4 years ago

README.md

cookiejar

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.

compilation

Dependencies:

  • gio-2.0
  • sqlite3
  • glib-2.0
  • gobject-2.0
git clone git@github.com:excurs0r/cookiejar.git
cd cookiejar
meson build
cd build
ninja

run tests

ninja test

usage

./cookiejar will tell you this:

cookiejar list profiles
cookiejar list cookies
cookiejar search <someWhat>
cookiejar export <someWhat> (search and return sql insert query)

how to copy netflix

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