Greasemonkey @require jQuery not working “Component not available”

前端 未结 8 2133
温柔的废话
温柔的废话 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:14

    Not entirely true, it seems like jQuery 1.4 tries to detect something using a call that just doesn't work in the greasemonkey environment. @require does normally work as it should.

    So reverting to 1.3.2 does do the trick, but I'd rather find a solution that lets me use 1.4.

    btw, I use this, slightly different:

    // @require http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
    

提交回复
热议问题