Nope, for security reasons inline JS is not allowed: https://developer.chrome.com/extensions/contentSecurityPolicy.html.