how to get current tab url in chrome extension popup.js code example
Example: chrome extension get current tab from popup
chrome.tabs.query({active: true, currentWindow: true},function(tabs){
var currentTab = tabs[0];
});
chrome.tabs.query({active: true, currentWindow: true},function(tabs){
var currentTab = tabs[0];
});