Add cookies via command line on MacOSX?
Hello all, Is there a simple way to add cookies to Firefox externally? As in is it possible to add cookies to Firefox via the command line on Mac OSX? Is there a way of running Javascript in Firefox via the command line, because if there is than I can use Javascript to add the cookie? I know you can open a website in Firefox via the command line, but I cant seem to run Javascript from the command line.
Thanks!
Adam
Alle Antworten (1)
I don't think that you can do this via the command line.
You would have to use an SQLite manager program to edit the cookies.sqlite database file.
You can also look at these extensions for some inspiration if you want to write your own extension:
- Cookie Importer: https://addons.mozilla.org/firefox/addon/cookie-importer/
- Export Cookies: https://addons.mozilla.org/firefox/addon/export-cookies/