<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>I duuno if this is the right way to do it, but using unsafeWindow seems to work:

&lt;pre&gt;
// ==UserScript==
// @name          Hello jQuery
// @namespace     http://wiki.greasepot.net/examples
// @description   jQuery test script
// @include       *
// @require	  http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// ==/UserScript==

if(unsafeWindow &amp;&amp; unsafeWindow.jQuery){
	$ = unsafeWindow.jQuery;
} 
$(&quot;a&quot;).click(function() {
	alert(&quot;Hello world!&quot;);
});
&lt;/pre&gt;

edit: actually scratch that. It doesn't seem to work properly.</body>
  <body-html>&lt;p&gt;I duuno if this is the right way to do it, but using unsafeWindow seems to work:&lt;/p&gt;

&lt;p&gt;&lt;pre&gt;
// ==UserScript==
// @name          Hello jQuery
// @namespace     http://wiki.greasepot.net/examples
// @description   jQuery test script
// @include       *
// @require	  http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// ==/UserScript==

if(unsafeWindow &amp;amp;&amp;amp; unsafeWindow.jQuery){
	$ = unsafeWindow.jQuery;
} 
$(&quot;a&quot;).click(function() {
	alert(&quot;Hello world!&quot;);
});
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;edit: actually scratch that. It doesn't seem to work properly.&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-10-29T23:25:13Z</created-at>
  <forumable-id type="integer">1</forumable-id>
  <forumable-type>Forum</forumable-type>
  <id type="integer">16884</id>
  <topic-id type="integer">9524</topic-id>
  <updated-at type="datetime">2008-10-29T23:27:07Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">26957</user-id>
</post>
