Interface nsIClickRuleType

Rule to specify the CSS selector for detecting and clicking cookie banner.

Hierarchy

Properties

hide: string

The CSS selector for hiding the presence of the cookie banner. If this is not given, we will use the presence selector to hide the banner.

Note that we hide the cookie banner before we click it in order to prevent flickers.

optIn: string

The CSS selector to to select the element to click for the opt-in option for the cookie banner.

optOut: string

The CSS selector to to select the element to click for the opt-out option for the cookie banner.

presence: string

The CSS selector for detecting the presence of the cookie banner.

runContext: nsIClickRule_RunContext

Where the click rule should be executed. See RunContext enum. Defaults to RUN_TOP.

skipPresenceVisibilityCheck: boolean

Whether to skip checking if the banner is visible before clicking it.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

Generated using TypeDoc