Skip to content

Instantly share code, notes, and snippets.

@diiigle
Last active November 27, 2018 09:10
Show Gist options
  • Save diiigle/2af64837028f283fc17e32de23d1f3b7 to your computer and use it in GitHub Desktop.
Save diiigle/2af64837028f283fc17e32de23d1f3b7 to your computer and use it in GitHub Desktop.
Enable default incognito mode for Google Chrome on Windows even when clicking on a link!
#Default incognito mode for Chrome on Windows
When using Google Chrome on Windows one maybe likes to enable its useful incognito mode by default.
Tutorials on the internet often rely on the command line parameter added to a custom desktop shortcut.
This method however does not open links in incognito mode, when you click on them in your mail client or a pdf document.
The registry key provided here achieves just this. You can simply click on any link and Chrome will open it in incognito mode regardless from which programm you started it.
No matter how Chrome is started it always starts in incognito mode.
## Install:
> Note this procedure must be repeated after every Chrome update.
- Download the .reg file
- (Edit the path to your chrome.exe)
- double click, allow admin access
- enjoy
Tested on Windows 8, 10
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\shell\open\command]
@="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --incognito \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment