User:Edward Chernenko/monobook.js
С Wikipedia
Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.
/* <pre> */ function addLoadEvent(func) { if (window.addEventListener) window.addEventListener("load", func, false); else if (window.attachEvent) window.attachEvent("onload", func); } /* Помещаем глобальное сообщение MediaWiki:Sitenotice вниз */ function move_site_notice() { var lmod = document.getElementById('lastmod'); var notice = document.getElementById('siteNotice').innerHTML; document.getElementById('f-list').innerHTML = lmod ? ("<div style=\"float: right\">" + notice + "</div>" + lmod.innerHTML) : notice; } addLoadEvent(move_site_notice); /* Включаем режим быстрых откатов (работает только для меня ;)) */ function godRevert_on() { if(document.getElementById('pagehistory')) document.getElementById('contentSub').innerHTML += " <a href=\"http://upreka.net/cgi-bin/revert_mw.cgi?page=" + wgPageName + "\">Откат</a>"; if(window.location.href.match('reverted_ok=1')) document.getElementById('contentSub').innerHTML += "<div class=\"usermessage\">Откат произведён успешно</div>"; } addLoadEvent(godRevert_on); /* </pre> */