Answer the question
In order to leave comments, you need to log in
How to get url from address bar in chrome plugin?
How to get url from address bar in chrome extension ?
document.location.href is not suitable, because the script is not executed on the page, but in the extension window. You need to get the url of the page that is open when the extension is launched.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question