Greasemonkey和jQuery 1.4.2无法正常工作

我试图使用Greasemonkey和jQuery 1.4.2。 当我安装Greasemonkey脚本时,jQuery肯定会被下载并出现在脚本目录中。 但是,下面的代码不会向PAPAGETITLE类的元素追加任何内容。 我究竟做错了什么?

 // ==UserScript== // @name PS Timesheet // @namespace http://www.steelebit.com/gmscripts // @description Used to fix a terrible implementation // @include https://intranet.site.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js // ==/UserScript== // Append some text to the element with id #someText using the jQuery library. $(".PAPAGETITLE").append(" more text."); 

更新:

从Greasemonkey版本0.9.1开始,到目前为止,jQuery 1.5.1似乎在我的所有脚本和测试中都能正常工作。


没有一些黑客攻击,Greasemonkey不能与jQuery 1.4一起使用。

使用jQuery 1.3.2。

请参阅: http : //forum.jquery.com/topic/importing-jquery-1-4-1-into-greasemonkey-scripts-generates-an-error (和其他)。

我在这里写了另一个可能的解决方案 ,它适用于jQuery 1.4。*