I\'m writing a Google Chrome extension which manipulates the current page (basically adds a button).
In my content script, I want to load the Facebook Graph API:
If you want to load it as content script:
fetch('https://example.com/content.js')
.then(resp => resp.text())
.then(eval)
.catch(console.error)
If you want to load it as background script. Take https://example.com/bg.js for example.
Empty content
"background": {
"page": "background.html"
},
"content_security_policy": "script-src 'self' https://example.com ; object-src 'self'",
Requirements: