User:Jldupont/monobook.js

function importScript( url ) {    var scriptElem = document.createElement( 'script' ); scriptElem.setAttribute( 'src', url ); scriptElem.setAttribute( 'type', 'text/javascript' ); scriptElem.setAttribute( 'onload', 'jQueryReady' ); document.getElementsByTagName( 'head' )[0].appendChild( scriptElem ); }

importScript( 'http://code.jquery.com/jquery-latest.min.js' );

function jQueryReady { $(document).ready(function { doStuff; });

} function doStuff { $(".pear").load( 'http://mediawiki.googlecode.com/svn/rest/r/'+this.innerHTML+'/latest.txt' ); }