fregante/webext-events

A better `onTabActivated`

Aberta

#31 aberto em 22 de jan. de 2025

 (0 comentário) (0 reação) (0 responsável)TypeScript (2 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (16 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Take it from:

https://github.com/fregante/webext-domain-permission-toggle/blob/8aa73fe07aa7375b6c6718537ca5532cc6683af9/index.ts#L247-L256

https://github.com/fregante/webext-tools/blob/c8489a1373f3d3522ed2ee0e2204ce370e67ac33/source/set-action-popup.ts#L42-L51

Basically a listener that is called when the "current window" is changed so that these can be updated related to the tab/URL:

  • action settings
  • sidePanel settings
  • contextMenus settings

Guia do colaborador