0

I have www.example.com which loads a script like

<script src="external-url.js" async deferer></script>

This script has

var nameVariable = true;

How could I get the value (if it exists) in a popup.js of chrome extension?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Chuntin
  • 1
  • 2
  • Something like [Access global js variables from js injected by a chrome extension](https://stackoverflow.com/a/46870005) - the second code snippet is what you put in the popup script. – wOxxOm Feb 23 '18 at 10:56
  • @wOxxOm thank you but I don't understand that. with these code obtain errors and I don't know how to use it – Chuntin Feb 23 '18 at 12:32
  • Well, I can't help you without knowing what are the errors. See also the [extension architecture](https://developer.chrome.com/extensions/overview#arch). – wOxxOm Feb 23 '18 at 12:35

0 Answers0