youtube api player chrome extension


I have an Google Chrome extension. I need someone to resolve a problem related to Inline JavaScript restrictions.

I have an chrome extension which uses YouTube Player API to control videos and playlists (pause,play,forward,rewind).

Extension is done. Developer needs to resolve a problem related to Inline JavaScript restrictions on chrome extension.

Specifically, this:

Refused to load the script '[url removed, login to view]'; because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource

In my chrome extension I use this, in order to activate the controls (play,pause,forward,rewind):

function setupPlayer()


var tag = [url removed, login to view]('script');

[url removed, login to view] = "[url removed, login to view]";

var firstScriptTag = [url removed, login to view]('script')[0];

[url removed, login to view](tag, firstScriptTag);


A couple of thing to consider:

1. Remember that Google chrome always disallow inline JavaScript code.

2. Problem is NOT related to manifest file:

this is the current value on content security police "content_security_policy": "script-src 'self' [url removed, login to view]; object-src 'self'"

3. Consider this:

This link [url removed, login to view] returns a JavaScript file that include another Javascript file:

[url removed, login to view]

Also, I need the source codes already.

Please consider this opportunity.

Skills: HTML, HTML5, Javascript

See more: script src self chrome extension resource, chrome youtube play, directive script src self chrome extension resource, i need google chrome, developer google chrome, developer extension, developer chrome, google developer api, youtube-api, youtube problem, youtube player, youtube api, security police, manifest, javascript google tag, google extension, google chrome extension, extension chrome, chrome javascript, youtube com activate google, chrome html source, chrome html player, chrome control, javascript pause, chrome content script

About the Employer:
( 3 reviews ) puerto vallarta, Spain

Project ID: #4637125

3 freelancers are bidding on average $51 for this job


Hello, I would like to do this for you. Please check your pm

$45 USD in 3 days
(59 Reviews)

Kindly check my message please. Thanks

$44 USD in 1 day
(10 Reviews)

Hi..i can do this work.can grab this opportunities

$63 USD in 2 days
(0 Reviews)