@grant is used to whitelist GM_* functions, the unsafeWindow object and some powerful window functions. If no @grant tag is given TM guesses the scripts needs.
If @grant is followed by 'none' the sandbox is disabled and the script will run directly at the page context. In this mode no GM_* function but the GM_info property will be available.
// @grant GM_xmlhttpRequest
欢迎光临 TamperMonkey油猴/暴力猴浏览器脚本插件中文网(原TMchina) (https://tampermonkey.cn/) | Powered by Discuz! X3.3 |