Diferencia entre revisiones de «Usuario:JimTittsler/monobook.js»
De WikiEducator
(update for MW 1.23+) |
m (1 revisión: import from en.WE after update to MW 1.23+) |
(Sin diferencias)
|
Última revisión de 14:48 3 sep 2014
function cleanPages() { var pages = ["/Online_manual", "/Training_resource_development_for_eXe",]; for (var i in pages) { if (window.location.pathname.indexOf(pages[i]) === 0) { document.getElementById("p-logo").innerHTML='<a href="http://eXeLearning.org/"><img src="/images/thumb/4/4a/Exe_RGB_72dpi.jpg/120px-Exe_RGB_72dpi.jpg"></a>'; } } } $(cleanPages); function ccButton() { if (wgPageName == "Special:EmailUser") { var g = document.getElementById("mw-emailuser-recipient"); var button = document.createElement("input"); button.type = "submit"; button.value = "CC:"; g.appendChild(button); var cc = document.createElement("input"); cc.type = "textarea"; g.appendChild(cc); } } $(ccButton); function try_test() { var fileref = document.createElement('script'); fileref.setAttribute("type", "text/javascript"); fileref.setAttribute("src", "/index.php?title=User:JimTittsler/test.js&action=raw&ctype=text/javascript"); document.getElementsByTagName("head")[0].appendChild(fileref); } function try_tag() { var fileref = document.createElement('script'); fileref.setAttribute("type", "text/javascript"); fileref.setAttribute("src", "/index.php?title=User:JimTittsler/t.js&action=raw&ctype=text/javascript"); document.getElementsByTagName("head")[0].appendChild(fileref); } importScript('User:JimTittsler/googlesearch.js'); $(function () { $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); $('#pt-mytalk') .after('<li><a href="/User:'+wgUserName+'/Blog">blog</a></li>') .after('<li><a href="/User:'+wgUserName+'/Projects">projects</a></li>') .after('<li>' + document.getElementById('content').offsetHeight + 'px</li>'); // change the font and size used for edit box $('#wpTextbox1').css('font-family', 'Courier New').css('font-size', '14px'); // gardening tool if (wgPageName === 'Special:NewPages') { $.getScript('/extensions/WE/spam.js'); } if (wgAction === 'history') { $.getScript('/extensions/WE/deleterevs.js'); } });