For my script to perform a privileged action, it needs to send a "message" to my background page,(background.html), so the background pages peforms it for it.
Okay my question is are you using this script in an html file if so why html why not just run the script with .js extension or why not use php to include the html file with <?php include 'background.html'; ?>
BurnedDesigns Wrote: Okay my question is are you using this script in an html file if so why html why not just run the script with .js extension or why not use php to include the html file with <?php include 'background.html'; ?>
Because the file needs special treat lol. And keep in mind that this is for a chrome extension.
If i simply add it like that
Code:
<script src="/js/content.js"></script>
It won't work, i've read a few posts about this and found out what i wrote above.
I forgot to mention, that it has to have GM_xmlhttpRequest granted.
For my script to perform a privileged action, it needs to send a "message" to my background page,(background.html), so the background pages peforms it for it.