SwitchyOmega icon indicating copy to clipboard operation
SwitchyOmega copied to clipboard

Different profiles for Incognito Windows 隐身窗口使用不同情景模式

Open FelisCatus opened this issue 12 years ago • 5 comments
trafficstars

English Title: Different profiles for Incognito Windows

这个完全可以做,但现在的代码可能需要修改来支持同时两个不同的情景模式。要考虑尽量避免两份几乎相同的代码。

FelisCatus avatar Nov 19 '13 12:11 FelisCatus

这个面临的主要问题是 SwitchyOmega 内部实现上使用的 “当前情景模式” 概念。有很多功能,比如图标颜色变化、添加规则等都依赖于“当前”这个概念,而目前 SwitchyOmega 只有一个“当前情景模式”,所以没有办法同时支持隐身和普通窗口分离。 这里需要重构代码,让每个“环境”都有独立的“当前情景模式”以及相关处理,才能实现此功能。

The blocking problem is the use of the "current profile" concept in SwitchyOmega internals. Many features such as changing of the browser action icon color and adding rules relies on the "current profile". For now, SwitchyOmega has only one "current profile", which cannot support split incognito behavior. The code must be refactored to use one "current profile" for each "context" and do processing based on the current context.

FelisCatus avatar Mar 29 '15 06:03 FelisCatus

2013? Bump!
We need a option to auto-proxy when incognito.

tabarra avatar Sep 16 '16 13:09 tabarra

There is an example extension that sets proxy separately for normal and incognito mode: https://developer.chrome.com/extensions/samples#search:proxy

I'm now using OmegaSwitchy (because it is convenient) only for normal mode (disabled in incognito), and that sample extension with slight modifications (not touching non-incognito proxy settings) in incognito, working nicely so far.

I don't know enough Chrome extension programming to port that sample into OmegaSwitchy, though, someone else will have to do that.

(P.S. chrome.extension.inIncognitoContext seems to always return false for me when in OmegaSwitchy code.)

evg-zhabotinsky avatar Aug 14 '20 15:08 evg-zhabotinsky

Yoo guys, 2021 bump?

tabarra avatar Nov 29 '21 02:11 tabarra