injectScript.setAttribute('src', URL_OF_EXTRA_SCRIPT)
document.documentElement.appendChild(injectScript)
Selenium: How to Inject/execute a Javascript in to a Page before loading/executing any other scripts of the page?