Tampermonkey® by Jan Biniok

@run-in v5.3+

Defines the type of browser context in which the script is injected. This meta key allows you to control whether the script should run in normal browsing tabs, incognito tabs, or both. This provides flexibility in determining the script's behavior based on the privacy context of the browsing session.

// @run-in normal-tabs

The script will be injected only in normal browsing tabs (non-incognito mode, default container).

// @run-in incognito-tabs

The script will be injected only in incognito browsing tabs (private mode). In Firefox, this means all tabs that don't use the default cookie store.

Firefox supports containers, which allow you to separate your browsing activities into distinct contexts. You can specify the container ID in the @run-in tag to control the script's behavior based on the container context.

// @run-in container-id-2
// @run-in container-id-3

The script will be injected only in tabs that belong to the specified containers. The container ID can be found by checking GM_info.container when the script is running in the desired container context.

If no @run-in tag is specified, the script defaults to being injected in all tabs.