Inline script tags are not permitted in extensions. So this shouldn’t work.
This gist I wrote is handy for testing extension features.