Closed

youtube api player chrome extension

This project received 3 bids from talented freelancers with an average bid price of $51 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
N/A
Total Bids
3
Project Description

Hi,

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.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online