Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub 似乎不再把 jQuery 暴露到全局了,用户脚本取不到 jQuery #14

Open
cssmagic opened this issue Apr 19, 2016 · 0 comments
Labels

Comments

@cssmagic
Copy link
Member

cssmagic commented Apr 19, 2016

GitHub 似乎采用模块机制来引用 jQuery 了,jQuery 不再暴露到全局,因此整个框架需要自己加载 jQuery(或 Zepto)。

这样的话,同时用户脚本似乎也不需要 unsafeWindow 的任何变量了,因此需要调整 @grant 设置。

@cssmagic cssmagic changed the title GitHub 似乎采用模块机制来引用 jQuery 了,jQuery 不再暴露到全局,因此整个框架 GitHub 似乎不再把 jQuery 暴露到全局了,用户脚本取不到 jQuery Apr 19, 2016
@cssmagic cssmagic added the bug label Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant