Skip to main content

Ralsina.Me — Roberto Alsina's website

Forget about "incognito mode", use a throwaway browser!

It's not be­cause I wrote it (ok, yes, it's be­cause I wrote it) but if you ev­er need a "clean" browser, with­out cook­ies etc for test­s, you can do worse than us­ing my De­vi­cen­zo like this:

rm -f ~/.config/ralsina/devicenzo.conf
curl | python

The first line re­moves all con­fig­u­ra­tion, cook­ies, etc, you may have and the sec­ond one down­loads the lat­est ver­sion (don't wor­ry, it takes about 2 sec­ond­s) and launch­es it.

And voilá, a com­plete­ly fresh out­-of-the-box, we­bkit-based browser, with no pre­vi­ous his­to­ry, cook­ies, or con­fig­u­ra­tion, fair­ly fea­ture-­com­plete.

Kay Hayen / 2013-04-10 16:51:

I used Selenium for this.

Brandon Rhodes / 2013-04-10 19:08:

The reason that many of us use an Incognito Window is because we need the Chrome Developer Tools for debugging our web application's login page, or whatever it is that we are debugging with different cookies than the ones we have set for normal use.

Roberto Alsina / 2013-04-10 19:11:

Good point. I thought everyone understood this was about porn (no, not really ;-)

John Lenton / 2013-04-10 22:31:

If you're doing this, you might want to consider tweaking the environ rather than nuking the config; for example,

curl | XDG_CONFIG_HOME=`mktemp -d` python

Contents © 2000-2024 Roberto Alsina