谷歌浏览器的隐身模式(Incognito Mode)是一种使用浏览器的好方法,您的任何浏览或下载历史不会被记录在您的机器或您的Google 帐户(Google account)中。这是一种简单的私密浏览方式,因此任何可以物理访问计算机的人都无法看到您访问过的网站。
值得注意的是,隐身模式(Incognito mode)不是安全或匿名浏览网页的某种方式。例如,您的ISP、您的雇主或您正在访问的网站仍然可以在线跟踪您。在隐身模式下(Incognito mode),不会下载 cookie,但网站仍然可以看到您的IP 地址(IP address)。此外,如果您访问恶意网站,您仍然可能被恶意软件或间谍软件感染。(malware or spyware)
但是,擦除本地计算机上的浏览足迹的能力是一项很棒的功能,并且在许多场合和情况下都非常有用。您可以通过几种不同的方式在Chrome中进入隐身模式(Incognito mode):您可以右键单击任务栏图标,在单击Chrome中的设置图标时从菜单面板中选择(menu panel)“新建隐身窗口(New Incognito Window)”或按CTRL + SHIFT + N and Command + SHIFT + NOS X中的Command + SHIFT + N。
但是,如果您经常使用隐身模式(Incognito mode),一个好主意可能是创建一个桌面快捷方式,将(desktop shortcut)Chrome直接打开到隐身模式(Incognito mode)。在本文中,我将展示如何在Windows 和 OS X中创建(Windows and OS X)隐身桌面(Incognito desktop)快捷方式。
Windows 隐身快捷方式
在Windows中,您必须将所谓的命令行参数(command line argument)添加到快捷方式的路径中。为此,您首先需要在桌面上有一个可用的快捷方式。如果您还没有Chrome 桌面(Chrome desktop)快捷方式,您可以通过在资源管理器中浏览到以下路径来创建一个:
C:\Program Files (x86)\Google\Chrome\Application
右键单击chrome.exe,选择发送到( Send To),然后单击桌面(创建快捷方式)(Desktop (create shortcut))。
现在转到您的桌面并右键单击(desktop and right-click)Chrome图标(Chrome icon)并选择Properties。
您应该已经在Shortcut选项卡上,您将在其中看到一个名为Target的框。EXE 文件(EXE file)的路径将在引号中列出。在框内单击(Click)并将光标移动到最后一个引号之后的末尾。
现在输入一个空格,后跟–incognito。值得注意的是,您可以输入单破折号或双破折号,它们都可以正常工作。正式地,您应该输入两个破折号,这就是我在这里展示的内容。
“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –incognito
单击确定时,您可能会收到一条UAC 警告(UAC warning),提示您无权进行更改。只需单击(Just click) 继续(Continue),它应该会更新快捷方式而不会出现任何问题。
现在双击快捷方式,您应该会看到一个新的隐身窗口(Incognito window)打开。更改快捷方式的名称可能也是一个好主意,这样您就可以区分这两个快捷方式。
如果您希望您的隐身浏览器在(Incognito browser)Windows启动时自动打开,您可以使用另一个命令行参数(command line parameter)并将其添加到 –incognito 参数之后。完成此操作的参数是–auto-launch-at-startup。
OS X 隐身快捷方式
在OS X上,您不能简单地右键单击停靠图标(dock icon)并添加参数。对于OS X,您必须创建自己的小应用程序,该应用程序只需使用相同的隐身参数运行(incognito parameter)Chrome。听起来(Sounds)很复杂,但实际上很容易。
首先,在您的Mac上打开一个名为Apple Script Editor的程序。您可以单击Spotlight 搜索并键入(Spotlight search and type)Script Editor,也可以转到Applications、Utilities并在此处单击它。
单击新建文档(New Document)以创建一个新的项目文件(project file)。在顶部窗口中,复制并粘贴(copy and paste)以下代码,如下所示。
do shell script “open -a /Applications/Google\\ Chrome.app –args –incognito”
现在点击文件(File)——保存(Save),你会得到另存为(Save As) 对话框(dialog box)。首先(First),为您的应用程序命名。这基本上是快捷方式名称(shortcut name)。接下来(Next),对于Where,将其更改为Desktop。最后,将文件格式(File Forma)更改为应用程序(Application)。
单击保存(Save),您现在将在桌面上看到一个新图标。您现在可以单击这个实际上是OS X中的应用程序的快捷方式,它将以隐身模式打开(Incognito mode)Chrome。唯一的问题是Chrome无法打开。
如果这不可接受,还有其他几种选择。您可以将上面的代码替换为以下代码,而不是上面的那一行代码:
tell application "Google Chrome"
close windows
make new window with properties {mode:"incognito"}
activate
end tell
该脚本将关闭所有当前的Chrome 窗口(Chrome window),然后以隐身模式打开一个新的(Incognito mode)Chrome 窗口(Chrome window)。这仍然不是一个完美的脚本,因为您的所有其他Chrome 窗口(Chrome window)都将关闭。幸运的是,您还可以尝试另一种脚本来正确完成工作。
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
set chrome_running to is_running("Google Chrome")
if chrome_running then
tell application "Google Chrome"
repeat with w in (windows)
if mode of w is "incognito" then
set index of w to 1
tell application "System Events" to tell process "Google Chrome"
perform action "AXRaise" of window 1
end tell
activate
return
end if
end repeat
end tell
tell application "Google Chrome"
make new window with properties {mode:"incognito"}
activate
end tell
else
do shell script "open -a /Applications/Google\\ Chrome.app – args – incognito"
end if
此脚本将保持所有当前Chrome窗口打开,并将打开一个处于隐身模式的新窗口。唯一的问题是应用程序的图标只是默认的脚本编辑器图标(Script Editor icon)。
要更改此设置,您必须单击桌面上的应用程序,然后按COMMAND + I 或右键单击并选择Get Info。为了更改Mac 应用程序(Mac application)的图标,您必须单击左上角(left corner)的图标,然后粘贴新图标。
当您单击左上角的图标时,您会看到它以蓝色突出显示。在粘贴新图标之前,您必须找到一个并将其复制到剪贴板。在Mac 上(Macs),您不能使用 JPEG 或 PNG 图像(t use JPEG or PNG images)、ICO文件或类似的东西。您可以使用系统上已有的图标,也可以创建一个.ICNS 文件(.ICNS file),这是 Mac 的图标文件(Macs)格式(icon file format)。
为了方便我们,只需在Finder中打开(Finder)Applications 文件夹(Applications folder),然后在当前Chrome 图标(Chrome icon)上执行Get Info ,如下所示。
单击(Click)左上角的Chrome 图标(Chrome icon),它将以蓝色突出显示。现在按COMMAND + C复制它。在我们创建的新应用程序上打开Get Info 屏幕,选择左上角的(Get Info screen)脚本编辑器图标(script editor icon),left and press COMMAND + V粘贴它。现在,您的桌面上有一个漂亮的Chrome 图标(Chrome icon),您可以在OS X上运行它来打开一个隐身窗口(incognito window),而不会弄乱您的常规Chrome 选项卡(Chrome tabs)。
如果您在此过程中遇到任何问题,请发表评论,我会尽力提供帮助。享受!代码来源:StackExchcange( Code Source: StackExchcange)
Create Google Chrome Incognito Mode Desktop Shortcut
Google Chrome’s Incognito Mode is а great way to use the browser withоut any of your browsing or downloading history being recorded locally on your machine оr in your Google acсount. It is a simple way to browse privately so that anyone who haѕ physical access to thе computer will not be able to see what sites you visited.
It’s worth noting that Incognito mode is not some way to browse the web securely or anonymously. For example, you can still be tracked online by your ISP, your employer or by the website you are visiting. In Incognito mode, cookies are not downloaded, but web sites can still see your IP address. In addition, you can still be infected by malware or spyware if you visit malicious sites.
However, the ability to erase your browsing footprint on the local computer is a great feature and very useful for many occasions and situations. You can enter Incognito mode in Chrome in a couple of different ways: you can right-click on the taskbar icon, choose New Incognito Window from the menu panel when you click on the settings icon in Chrome or by pressing CTRL + SHIFT + N and Command + SHIFT + N in OS X.
If you use Incognito mode a lot, however, a good idea might be to create a desktop shortcut that opens Chrome directly to Incognito mode. In this article, I’ll show how to create the Incognito desktop shortcut in Windows and OS X.
Windows Incognito Shortcut
In Windows, you have to add what is called a command line argument to the shortcut’s path. In order to do this, you need a working shortcut on the desktop first. If you don’t already have a Chrome desktop shortcut, you can create one by browsing to the following path in Explorer:
C:\Program Files (x86)\Google\Chrome\Application
Right-click on chrome.exe, select Send To and then click on Desktop (create shortcut).
Now go to your desktop and right-click on the Chrome icon and choose Properties.
You should already be on the Shortcut tab where you will see a box called Target. The path to the EXE file will be listed in quotes. Click inside the box and move your cursor to the end past the last quote.
Now type in a space followed by –incognito. It’s worth noting that you can either type in a single dash or a double dash and both of them work just fine. Officially, you should put in two dashes, so that is what I have shown here.
“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –incognito
When you click OK, you might get a UAC warning that you don’t have permission to make the change. Just click Continue and it should update the shortcut without any issues.
Now double-click on the shortcut and you should see a new Incognito window open right up. It’s probably a good idea to change the name of the shortcut also so you can differentiate between the two shortcuts.
If you want your Incognito browser to open automatically when Windows starts, you can use another command line parameter and just add it after the –incognito parameter. The parameter to accomplish this is –auto-launch-at-startup.
OS X Incognito Shortcut
On OS X, you can’t simply right-click on the dock icon and add parameters. For OS X, you have to create your own little application that simply runs Chrome with the same incognito parameter. Sounds complicated, but it’s pretty easy actually.
First, open a program called Apple Script Editor on your Mac. You can either click on Spotlight search and type Script Editor or you can go to Applications, Utilities and click on it there.
Click on New Document to create a new project file. In the top window, copy and paste the following code like shown below.
do shell script “open -a /Applications/Google\\ Chrome.app –args –incognito”
Now click on File – Save and you’ll get the Save As dialog box. First, give your application a name. This is basically the shortcut name. Next, for Where, change it to Desktop. Lastly, change the File Format to Application.
Click Save and you’ll now see a new icon on your desktop. You can now click on this shortcut that is actually an application in OS X and it will open Chrome in Incognito mode. The only problem is that Chrome cannot already be open.
If that isn’t acceptable, there are a couple of other options. Instead of that one line of code above, you could replace the code above with the following code:
tell application "Google Chrome"
close windows
make new window with properties {mode:"incognito"}
activate
end tell
This script will close all current Chrome windows and then open a new Chrome window in Incognito mode. This is still not a perfect script because all your other Chrome windows will be closed. Luckily, there is one more script you can try that does get the job done properly.
on is_running(appName)
tell application "System Events" to (name of processes) contains appName
end is_running
set chrome_running to is_running("Google Chrome")
if chrome_running then
tell application "Google Chrome"
repeat with w in (windows)
if mode of w is "incognito" then
set index of w to 1
tell application "System Events" to tell process "Google Chrome"
perform action "AXRaise" of window 1
end tell
activate
return
end if
end repeat
end tell
tell application "Google Chrome"
make new window with properties {mode:"incognito"}
activate
end tell
else
do shell script "open -a /Applications/Google\\ Chrome.app – args – incognito"
end if
This script will keep any current Chrome windows open and will open a new window that is in Incognito mode. The only issue is that the icon for the application is just the default Script Editor icon.
In order to change this, you have to single click on the application on your desktop and then press COMMAND + I or right-click and choose Get Info. In order to change the icon for a Mac application, you have to click on the icon in the upper left corner and then paste the new icon.
When you click on the icon at the upper left, you’ll see it is highlighted in blue. Before you paste a new icon, you’ll have to find one and copy it to the clipboard. On Macs, you can’t use JPEG or PNG images, ICO files or anything like that. You can either use icons already on the system or you have to create an .ICNS file, which is the icon file format for Macs.
To make it easy for us, just open the Applications folder in Finder and do Get Info on the current Chrome icon like shown below.
Click on the Chrome icon at the top left and it’ll be highlighted in blue. Now press COMMAND + C to copy it. Open the Get Info screen on the new application we created, select the script editor icon at the top left and press COMMAND + V to paste it. You’ll now have a nice Chrome icon on your desktop that you can run on OS X to open an incognito window without messing with your regular Chrome tabs.
If you run into any trouble during the process, post a comment and I’ll try to help. Enjoy! Code Source: StackExchcange