是否可以通过编程方式调用Chrome自定义标签,但作为"隐身模式"?

m-p*_*p-3 14 chrome-custom-tabs

在某些情况下,用户可能不希望Chrome自定义标签显示在其浏览历史记录中.该应用是否有任何方式可以告知Chrome自定义标签以隐身模式显示网页,并避免将该网址存储在用户正常浏览历史记录中?

如果目前无法实现,那么有人可以在哪里提交功能请求?

谢谢!

Sym*_*ker 0

现在有可能了。例如在 C# 中:

try
{
    string dataFolder = "C:\userFolder"; // If you need to maintain your browser session, you can configure a user data directory
    string urlToOpen = "https://shalliknow.com"; // replace your url to open
    Process process = new Process();
    process.StartInfo.FileName = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe";
    process.StartInfo.Arguments = $"--new-window={urlToOpen} --start-maximized --incognito --user-data-dir=\"{ dataFolder}\""; // SSH new Chrome
    process.Start();
}
catch (Exception ex)
{
    Console.Writeline("Exception while opening link in browser");
}
Run Code Online (Sandbox Code Playgroud)

chrome.exe可以在此处找到 此代码的源代码以及命令行参数列表:https: //shalliknow.com/articles/en-scs-how-to-open-chrome-in-incognito-mode-programmatically -in-csharp