focusTab by tomofi
Focus a tab with window.focusTab() function
You'll need Firefox to use this extension
Meiteashonraí na hEisínteachta
About this extension
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
Rátáil d'eispéireas
PermissionsLearn more
This add-on needs to:
- Access browser tabs
- Access your data for all websites
Tuilleadh eolais
- Nascanna an Bhreiseáin
- Leagan
- 1.2
- Size
- 9.5 KB
- Nuashonrú is déanaí
- 5 bliain ó shin (6 M.F. 2019)
- Related Categories
- Ceadúnas
- The MIT License
- Version History
Add to collection
More extensions by tomofi
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet
- There are no ratings yet