Answers for "chrome extension get current tab content"

2

chrome extension get current tab url

chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
    console.log(tabs[0].url);
});
Posted by: Guest on February-06-2021
0

get current tab from chrome extension developer

chrome.tabs.query({active: true, lastFocusedWindow: true}, tabs => {
    let url = tabs[0].url;
    // use `url` here inside the callback because it's asynchronous!
});
Posted by: Guest on May-02-2021

Code answers related to "chrome extension get current tab content"

Code answers related to "Javascript"

Browse Popular Code Answers by Language