How can I inject a <script> to my document which will initialize a variable?
content_script:
$("body").append('<script type="text/javascript">myvar="hi there";</script>');
When I do this, the variable myvar is not recognized...
If I add a simple alert(500); I get the alert.
Basically I just want to pass a variable from the extension the document to use it there.