injectApiSetter hotfix

A change by youtube in base.js and www-pageframe.js broke injection. The hook is now inside the for loop.
This fix maintains compatibility with older versions of said scripts since such changes seem staggered on youtube's end.