Last active
February 2, 2025 22:28
-
-
Save guidocella/a272b6e68f9c44532b011f6596e95c61 to your computer and use it in GitHub Desktop.
Convert qutebrowser's cookies to Netscape format
Also, could this be rendered as a qutebrowser userscript?
It should run fine as a userscript. You can even use $QUTE_DATA_DIR
.
@guidocella : I just saw your question from last year...
I don't remember what version of bash/dash/sh I had, but the current gist now works for me :-)
Although, I replaced the file path with "file:${XDG_DATA_HOME}/qutebrowser/webengine/Cookies?nolock=1"
I did not bother making something that is compatible with "file:${1:-$HOME/.local/share/qutebrowser}/webengine/Cookies?nolock=1"
I believe that this would work ${1:-${XDG_DATA_HOME:-$HOME/.local/share}/qutebrowser}
but that is difficult to understand :-)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe this?