jQuery in Greasemonkey 1.0 conflicts with websites using jQuery

前端 未结 3 2249
猫巷女王i
猫巷女王i 2020-11-22 05:07

Ever since the new Greasemonkey 1.0 was released a few days ago, every site that has jQuery and where I use jQuery in my Greasemonkey script do not run my script properly. T

3条回答
  •  [愿得一人]
    2020-11-22 05:18

    Had the same problem.

    Since GM version 1.0 , all my scripts that @require jQuery, running on sites that also uses jQuery stopped working.

    I know, I could try something like $ = unsafeWindow.$ , but that is not the point.

    The point here is that they used to work, and now they wont.

    Adding @grant GM_log fixed them.

提交回复
热议问题