Great but needs a way to launch Chrome "Incognito" mode Rated 4 out of 5 stars

Very useful extension which solves many long-standing problems for me with one exception... (On Windows XP) I needed to use it with Chrome's "Incognito" mode, a feature I notice was requested in a review in 2009. So I figured, hey, I'll just write a .bat script:

"C:\Documents and Settings\«username»\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --incognito %1

No problem, right? But I would edit the options and save them, go back and see that they hadn't been changed / had reverted / whatever. I tried everything I could think of, uninstalled, reinstalled, tore my hair out trying to figure out what the hell was going on.

Finally I realized that the add-on itself was intentionally ignoring and discarding my changes because it didn't like the fact that the application path ended in .bat instead of .exe. ARRRGH.

So, I figured out how to re-write the .bat script in C which I compiled to an .exe with MinGW. I don't know what most of this does, just hacked it until it worked. Replace «username» with the appropriate value in your case:

#include <windows.h>
#include <unistd.h>

int main( int argc, char *argv[], char *env[] )
{
for (;;) {
execl("C:\\Documents and Settings\\«username»\\Local Settings\\Application Data\\Google\\Chrome\\Application\\chrome.exe", "chrome.exe", "--incognito", argv[1], (const char *) 0);
}
return 0;
}

compiled with the command line

C:\MinGW>gcc.exe -O6 -mwindows -march=pentium -funroll-loops -fomit-frame-pointer -s -o chromeincognito chromeincognito.c -lmingw32

This review is for a previous version of the add-on (12.08).