xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
989 stars 85 forks source link

Partially disable multifoxContainer functionality #60

Closed a-hwang closed 3 years ago

a-hwang commented 3 years ago

How can I modify the script so that the when I open a new tab, it does not inherit the container of the current tab? I would prefer to keep the menu button when clicking on the icon. Thanks!

xiaoxiaoflood commented 3 years ago

Remove these two lines: https://github.com/xiaoxiaoflood/firefox-scripts/blob/master/chrome/multifoxContainer.uc.js#L28-L29

      } else if (!options.relatedToCurrent && !options.userContextId && this.selectedTab.userContextId != UC.privateTab?.container.userContextId) {
        options.userContextId = this.selectedTab.userContextId;
a-hwang commented 3 years ago

Remove these two lines: https://github.com/xiaoxiaoflood/firefox-scripts/blob/master/chrome/multifoxContainer.uc.js#L28-L29

      } else if (!options.relatedToCurrent && !options.userContextId && this.selectedTab.userContextId != UC.privateTab?.container.userContextId) {
        options.userContextId = this.selectedTab.userContextId;

This worked, thanks!