Using YUI in Greasemonkey Scripts » Yahoo! User Interface Blog
"a Greasemonkey script that adds calls to external JavaScript libraries and CSS files to a given page and, once they are loaded, passes the YAHOO global object to the code inside the Greasemonkey script."