I'm using Firefox 2.0.0.11 and Greasemonkey 0.8.x and the latest jQuery version (1.3.2) that works with Greasemonkey 0.8.
I try to load this Userscript:
// ==UserScript==
// @name TEST
// @include *
// @require jquery.min.js
// @grant GM_getValue
// ==/UserScript==
$(document).ready(function(){
alert('jQuery!');
});
but I receive the error:
Error: $ is not defined
Source File: file:///G:/Firefox/Data/profile/gm_scripts/huhu/huhu.user.js
Line: 8
I know that I have to update this old browser. But it's not possible. I have to work with that!
I want to load jQuery code on a local PC with no internet connection. I have copied jquery.min.js in the same folder where the userscript is.
G:/Firefox/Data/profile/gm_scripts/huhu/jquery.min.js
Any ideas where the problem is?
Regards, Bernte