
focusTab ์ ์์: tomofi
Focus a tab with window.focusTab() function
11 Users11 Users
์ด ํ์ฅ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๋ ค๋ฉด Firefox๊ฐ ํ์ํจ
ํ์ฅ ๋ฉํ ๋ฐ์ดํฐ
์ ๋ณด
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
Rated 0 by 0 reviewers
Permissions and data๋ ์์๋ณด๊ธฐ
ํ์ํ ๊ถํ:
- ๋ธ๋ผ์ฐ์ ํญ์ ์ ๊ทผ
- ๋ชจ๋ ์น์ฌ์ดํธ์์ ์ฌ์ฉ์์ ๋ฐ์ดํฐ์ ์ ๊ทผ
์ถ๊ฐ ์ ๋ณด
- ๋ถ๊ฐ ๊ธฐ๋ฅ ๋งํฌ
- ๋ฒ์
- 1.2
- ํฌ๊ธฐ
- 9.5 KB
- ๋ง์ง๋ง ์ ๋ฐ์ดํธ
- 6๋ ์ (2019๋ 9์ 6์ผ)
- ๊ด๋ จ ์นดํ ๊ณ ๋ฆฌ
- ๋ผ์ด์ ์ค
- MIT ๋ผ์ด์ ์ค
- ๋ฒ์ ๋ชฉ๋ก
- ๋ชจ์์ง์ ์ถ๊ฐ
tomofi ๋์ ๋ค๋ฅธ ํ์ฅ ๊ธฐ๋ฅ
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค
- ์์ง ํ์ ์ด ์์ต๋๋ค