Compatibility fixes for Greasemonkey v2.

Compatibility fixes for Greasemonkey v2. 
ref. https://github.com/Constellation/ldrfullfeed/issues/2

- add `@grant`
- export unsafe function which is referred from page context