Versi per a telfons mbils

L'home dibuixatL’home dibuixat

«Jo sóc l'home dibuixat, el que no té carn ni cos.
D'homes dibuixats com jo se n'aprofiten els grans»
Jaume Sisa - L'home dibuixat
Índex *SeguretatCriptografiaAnàlisi ForenseMalwarePrivadesa *EinesGadgetsInternetLinuxWindows *Telèfons mòbils *CiènciaCultura *Fotobloc

Truc: iniciar Chrome en modalitat "incognito"

2 novembre 2008 —   — Classificat com a: InternetComentaris (2)

Un script en JavaScript que permet executar el navegador Chrome en modalitat "incognito", de forma que no enregistri informació sobre els llocs web visitats, ni desi cap fitxer a la memòria cau, ni (en teoria) cap dada privada.

Per a fer-ho cal crear aquest script (el podeu anomenar chrome-incognito.js):

//Chrome_Incognito.js - start new chrome incognito(sort of)
var liWait=175; //wait ms (double on older pc)
var oSh=new ActiveXObject("WScript.Shell");
oSh.Run("chrome.exe"); //start chrome
WScript.Sleep(liWait);
oSh.Sendkeys("^+N"); //start new incognito window
WScript.Sleep(liWait);
oSh.Sendkeys("%{Tab}"); //go previous(first) browser window
WScript.Sleep(liWait);
oSh.Sendkeys("%{F4}"); //close first browser window

Bàsicament el que fa és executar el programa, obrir una finestra nova en modalitat "incognito" i, a continuació, tanca la finestra inicial.

La mateixa funcionalitat es pot fer en Visual Basic (en aquest cas, l'extensió ha de ser .vbs):

'Chrome_Incognito.vbs - start chrome incognito
Set oSh=CreateObject("WScript.Shell")
Dim Chrome_HKLM
Chrome_HKLM="HKLM\" & _
"SOFTWARE\" & _
"Classes\" & _
"ChromeHTML\" & _
"shell\" & _
"open\" & _
"command\"
Dim Chrome
Chrome=oSh.RegRead(Chrome_HKLM)
oSh.Run Chrome
ccSleep 1
oSh.Sendkeys "^+N"
ccSleep 1
oSh.Sendkeys "%{Tab}"
ccSleep 1
oSh.Sendkeys "%{F4}"
WScript.Quit
'-
Sub ccSleep(seconds)
set oShell = CreateObject("Wscript.Shell")
cmd = "%COMSPEC% /c ping -n " & 1 + seconds & " 127.0.0.1>nul"
oShell.Run cmd,0,1
End Sub
'-this ccSleep I got from : http://www.mvps.org/scripting/rube/index.htm

Vist a Michale T. Bee's ESI.

Entrades aleatòries

Carregant…

Publicitat

2 comentaris »

  1. A partir de la versió 0.3.154.3 (i no sé si també a les anteriors) es pot iniciar directament en mode incògnit afegint "–incognito" a l'accés directe.

    Comentari by menek — 2 novembre 2008 @ 17:49

  2. Si, tens raó… funciona :)

    Comentari by Xavier Caballé — 2 novembre 2008 @ 18:25

Canal RSS pels comentaris a aquesta entrada. TrackBack URL

Deixa un comentari

 

 

Switch to our mobile site