User:Cleydwn/monobook.js

hookEvent( 'load', function { var globalWrapper = document.getElementById( 'globalWrapper' );  var cleydwnBox      = document.createElement( 'div' );  cleydwnBox.style.position   = 'fixed';  cleydwnBox.style.zIndex     = '1000';  cleydwnBox.style.display    = 'none';  cleydwnBox.style.top        = '3em';  cleydwnBox.style.right      = '3em';  cleydwnBox.style.border     = '1px solid silver';  cleydwnBox.style.background = '#FFF';  cleydwnBox.style.fontSize   = '90%';  cleydwnBox.style.padding    = '2px 5px';  cleydwnBox.innerHTML        = 'Cleydwn &middot; '                              + 'Talk &middot; '                              + 'Watchlist &middot; '                              + 'Noticeboard &middot; ' + 'RC &middot; ' + '.js &middot; ' + '.css &middot; ' + 'Sandbox'; globalWrapper.appendChild( document.createElement( 'div' ) ); globalWrapper.lastChild.style.position  = 'fixed'; globalWrapper.lastChild.style.zIndex    = '1000'; globalWrapper.lastChild.style.top       = '1px'; globalWrapper.lastChild.style.right     = '1px'; globalWrapper.lastChild.style.width     = '15px'; globalWrapper.lastChild.style.height    = '15px'; globalWrapper.lastChild.style.background = 'silver'; globalWrapper.lastChild.onclick         = function { cleydwnBox.style.display = cleydwnBox.style.display == 'none' ? 'block' : 'none'; } globalWrapper.appendChild( cleydwnBox ); } );