Check if specified url is opened in tab, select it or open it in new tab.
- We have to include
tabs
aspermissions
inmanifest.json
, otherwise the url of tabs we get are alwaysunderfined
. *://*.taobao.com
is not valid url pattern, but*://*.taobao.com/
or*://*.taobao.com/*
is<all_urls>
is for all urls
./gradlew compileKotlin2Js
cd extension
npm install
Chrome -> Extensions
-> Enable Developer Mode
-> Load unpacked
-> select the extension
directory of this project.
Open a page, and click the icon of this extension on toolbar, you will see a popup dialog with current url.