fregante/webext-events

A better `onTabActivated`

Aperta

#31 aperta il 22 gen 2025

 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (2 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (16 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor