You are not logged in.

#1 2011-03-01 13:21:59

abarahc
Member
Registered: 2010-04-30
Posts: 128

uzbl-browser with new cookie-manager

hey guys, how can i clean all cookies when i close uzbl?

in the past versions i using this script

cleancookies [-w FILE | -b FILE] [-c COOKIES]

       -w FILE    - read whitelisted domains from FILE
       -b FILE    - read blacklisted domains from FILE
       -c COOKIES - read cookies from COOKIES file instead of stdin
       -h         - print this help
       -V         - print version

If -w or -b option is specified, cleancookies treats each line of FILE as regular expression that cookie domain is matched against.

COOKIES file (or stabndard input) should be cookies.txt file as used by mozilla and uzbl-cookie-daemon.

EXAMPLE: add following script to your .xsessionrc, or register it in crontab:

tmp=$(mktemp)
wl=${XDG_CONFIG_HOME:-$HOME/.config}/uzbl/whitelist
ck=${XDG_DATA_HOME:-$HOME/.config}/uzbl/cookies.txt
cleancookies -w $wl -c $ck > $tmp
mv $tmp $ck
killall uzbl-cookie-daemon && uzbl-cookie-daemon -v start

(posted :: http://www.uzbl.org/wiki/cleancookies)

but now uzbl doesnt use cookies.txt he just have a exec  called "uzbl-cookie-manager". files in this folder (/usr/share/uzbl/...) there are examples of this exec on .c source ;D but i dont know how this works (many, many methods x_x')

does anyone have a uzbl-cookie-manager.c modified to expire cookies on the close?

/* uzbl-cookie-manager.c (default version) - https://gist.github.com/849108 */


user@localhost $ grep -rnw "." -e "hacking"

Offline

Board footer

Powered by FluxBB