If you put Javascript in the footer, it won't be executed until DOM loaded anyway. ( http://ablogaboutcode.com/2011/06/14/how-javascript-loading-works-domcontentloaded-and-onload/ ). Regardless, your plugin should be available for the userscripts to execute when they want, likely within the DOM load.