focusTab nga tomofi
Focus a tab with window.focusTab() function
13 Përdorues13 Përdorues
Tejtëdhëna Zgjerimi
Rreth këtij zgjerimi
Usage
First argument is queryInfo object.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/query#Parameters
// Focus a tab with title
focusTab({title: 'Example Domain'})
document.dispatchEvent(new CustomEvent('focusTab', {'detail': {title: 'Example Domain'}}))
// Focus a tab with url
focusTab({url: 'http://example.com/'})
document.dispatchEvent(new CustomEvent('focusTab', {'detail': {url: 'http://example.com/'}}))
// Focus a tab with wildcard
focusTab({url: 'https://www.google.com/search*'})
document.dispatchEvent(new CustomEvent('focusTab', {'detail': {url: 'https://www.google.com/search*'}}))
First argument is queryInfo object.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/query#Parameters
Vlerësuar me 0 nga 0 shqyrtues
Leje dhe të dhëna
Leje të domosdoshme:
- Të hyjë në skeda të shfletuesit
- Të hyjë në të dhënat tuaja për krejt sajtet
Më tepër të dhëna
- Lidhje shtese
- Version
- 1.2
- Madhësi
- 9,5 KB
- Përditësuar së fundi më
- 6 vite më parë (6 Sht 2019)
- Kategori të Afërta
- Licencë
- Licencë MIT
- Historik Versionesh
- Shtojeni në koleksion