简体   繁体   中英

How to open new incognito window with Javascript? (Google Chrome)

我想帮助我的朋友在执行一些鼠标手势时在新的隐身窗口中打开一个网站(鼠标笔画中的自定义笔画 - Chrome 扩展程序)。

Chrome extensions with the tabs permission can use the chrome.windows.create method:

chrome.windows.create({"url": url, "incognito": true});

However, to access it, you'll either need to write your own extension or find an existing one which provides a suitable hook (I don't know whether this can be done with "Mouse Stroke"—I'm too scared to look).

windows.create 仍然适用于我,因为我从后台脚本中使用它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM