Skip to main content Link Search Menu Expand Document (external link)

The Cookie Thinger Interface

The cookie thinger interface lets you run scriptable groups of actions that do things with cookies on tabs.

There is only one cookie thinger and it can always be found at jancy.cookieThinger.

Methods

cookieThinger.runGroup(groupNo, tabIds)

  • groupNo (number) the group number to run
  • tabIds ([string]) an array of tab IDs to run the group on.

Returns a promise that resolves when the group has ben run.

// Assuming we get a tab object from somewhere...
const tab = ...
jancy.cookieThinger.runGroup(0, [ tab.uuid ])

Since Jancy 1.11.3, this method is also callable via an action.

const tab = window.jancyAPI.getTabInfo()
window.jancyAPI.dispatchAction(
  'cookie-thinger:call',
  { method: 'runGroup', args: [ 0, [ tab.tabId] ] }
)