Greasemonkey @require jQuery not working “Component not available”

前端 未结 8 2149
温柔的废话
温柔的废话 2020-12-16 19:41

I\'ve seen the other question on here about loading jQuery in a Greasemonkey. Having tried that method, with this require statement inside my ==UserScript== tag

8条回答
  •  忘掉有多难
    2020-12-16 20:26

    The @require attribute doesn't work correctly in Greasemonkey and jQuery...this same error can occur in FireBug as well.

    An alternative is to include jQuery in the page via Greasemonkey by creating the script tag. Here's how to do that.

提交回复
热议问题