![]() As a result, the track scripts cannot read the configuration variables. Since the trackers are of the type "Injected script", these fully run in the context of the web page. (document.getElementsByTagName('head') || document.getElementsByTagName('body')).appendChild(hs) Ĭontent scripts do not run in the scope of the page ( see also), they run in a context between your extension and the web page. Var hs = document.createElement('script') hs.type = 'text/javascript' hs.async = true Var s = document.getElementsByTagName('script') s.parentNode.insertBefore(ga, s) Var ga = document.createElement('script') ga.type = 'text/javascript' ga.async = true "content_security_policy": "script-src 'self' object-src 'self'",įor now contentScript.js var _gaq = _gaq || "name": "View the website information for ", "description": "The Website Safety Extension.", The JavaScript wants to get the url of the current page and the referrer and post it back to the server.Ĭan anyone please advice me what is wrong here and how can I if not possible this way can I post data from the current page back to the server. The external JavaScript then tries to post some data back to the server, however that is not taking place. ![]() I am adding some external JavaScript to the end of the page via my chrome extension. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |