简体   繁体   English

是否可以在当前标签页中模拟隐身模式? (chrome扩展名)

[英]Is it possible to simulate incognito mode in current tab? (chrome extension)

There's a website that many people in university programs despise that is blackboard. 有一个大学计划的很多人都鄙视的网站是黑板。 My school has their own instance of blackboard running that must be completely misconfigured because your session times out almost instantly or you get thousands of errors popping up as you try to browse after logging in. These problems seem to be fixed when logging in via incognito mode. 我学校有自己的黑板运行实例,必须完全将其配置错误,因为您的会话几乎立即超时,或者在尝试登录后浏览时弹出数千个错误。通过隐身模式登录时,这些问题似乎已解决。 。

Question: I've created an extension that, when you navigate to blackboard, closes your current tab and opens blackboard in a new incognito window. 问题:我创建了一个扩展,当您导航到黑板时,将关闭当前选项卡并在新的隐身窗口中打开黑板。 Is it possible to achieve something to the same effect inside the current tab? 是否有可能在当前标签页中达到相同的效果?

My current solution works fine, but it would be 100 times better to "spoof" incognito in the current tab. 我当前的解决方案可以正常工作,但是“欺骗”当前标签中的隐身将好100倍。

Unfortunately, no. 抱歉不行。 Chrome is purposefully designed with certain separations between Normal and Incognito mode, including the restriction of intermixing tab types in one window. Chrome经过精心设计,在“正常”模式和“隐身”模式之间进行了某些分隔,包括限制在一个窗口中混合使用标签类型。 The chrome.tabs API provides several methods for accessing and manipulating tab properties but there isn't a way to 'spoof' a tab's properties, other than updating them using chrome.tabs.update , which does not provide the capability to update a tab's incognito property. chrome.tabs API提供了几种访问和操作选项卡属性的方法,但是除了使用chrome.tabs.update对其进行更新外,没有“欺骗”选项卡属性的方法,该方法不提供更新选项卡属性的功能。 incognito财产。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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