support for Greasemonkey 2.0

unsafeWindow is not work correctly in Greasemonkey 2.0. So, Change
script to create `script` element in the page and execute it.