title: How to load YouTube API locally?
body: <p>I need to load the YouTube API locally (Google Extension not allowing external scripts).  So I downloaded the files into my directory:</p>
  
  <pre><code>https://www.youtube.com/player_api
  https://s.ytimg.com/yts/jsbin/www-widgetapi-vfl4qCmf3.js
  </code></pre>
  
  <p>However, when I try to programmatically inject this via a content script, it gives the following error:</p>
  
  <pre><code>Uncaught ReferenceError: YTConfig is not defined
  </code></pre>