Skip to content Skip to sidebar Skip to footer

Chrome Extension: Using Document.queryselector In Background Script

I'm trying to set a variable equal to the favicon url of the current page. Are you not able to do this in the background script? How else could I get the current page's favicon url

Solution 1:

For reading and manipulating DOM, you must use Content Scripts. https://developer.chrome.com/extensions/content_scripts


Post a Comment for "Chrome Extension: Using Document.queryselector In Background Script"