Way to detect if current Chrome window is incognito?

Is there a way to detect if the active/front Chrome window is in incognito mode, for purposes of an if/then action? Perhaps an AppleScript?

tell application "Google Chrome"
	get mode of front window
end tell
2 Likes

Incognito Check.kmactions (1.5 KB)

One caveat: If you've just deleted your browsing history, this won't work until you've opened and closed one tab.

1 Like