We are working on an Open Source Chrome extension: Digital Assistant Client
Product Demo:
Part 1: https://www.youtube.com/watch?v=Iz2WgKY0fhc
Part 2: https://www.youtube.com/watch?v=i0_MNfBnYfM
I am planning to move my extension from v2 to v3. I have functionality where i inject script to the head section as text. In v3 they were saying if i add the script it will be considered as remotely hosted code and all the remotely hosted code should be bundled along with the extension package Link. Here is the sample of my code
var s = document.createElement('script');
s.async = false;
s.onload = function() {
};
s.text = `
my logic goes here
`;
(document.head || document.documentElement).appendChild(s);
Will my script injection will get stopped? If so what alternative should i use