JQuery + Greasemonkey

Had to look around to figure out how to include jquery in greasemonkey. Should have just guessed this first; Just use the @require, and your standard jquery document ready code. Heres my template anyway.

1
2
3
4
5
6
7
8
9
10
11
12
 
// ==UserScript==
// @name JQuery Template
// @author Zach Dwiel
// @description Provide a basic template for using jquery in greasemonkey
// @include *://*
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$(document).ready( function() {
// your jquery code here
}