0

So far I'm able to retrieve the url of the active page, but how can I get the DOM of the page to use jquery selectors on it?

      chrome.tabs.query({
          active: true,
          lastFocusedWindow: true
      }, function(tabs) {
          var tab = tabs[0];
          console.log(tab.url);
      });
  • Does this old question help you? https://stackoverflow.com/questions/19758028/chrome-extension-get-dom-content – Raptor Sep 03 '21 at 09:59

0 Answers0