User:Milo Rambaldi~enwiki/monobook.js

// // Usuario:Ruiz/monobook.js versión 05.08.2004 // Usando Usuario:Pybalo/monobook.js v0.2:2004.07.30 // y Usuario:Comae/monobook.js // // Para más detalles ver Botonera //

/*********** Botonera ***********/ window.onload = loadButtons;

function goSearch(i) { urls = new Array(    "http://en.wikipedia.org/wiki/",    "http://fr.wikipedia.org/wiki/",    "http://www.google.com/search?q=site:wikipedia.org&q=",    "http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&TIPO_BUS=2&LEMA=",    "http://google.com/search?q="  );

var text = document.getElementById("searchInput"); window.open(urls[i] + escape(text.value)); }

function buttonCode(strCode) { return ' '; }

function loadButtons { var btSearch = ' '; btSearch += buttonCode('onclick="goSearch(0)" value="w:EN" title="Wikipedia en inglés"'); btSearch += buttonCode('onclick="goSearch(1)" value="w:FR" title="Wikipedia en francés"'); btSearch += buttonCode('onclick="goSearch(2)" value="WikiG" title="Wikipedia en Google"'); btSearch += buttonCode('onclick="goSearch(3)" value="DRAE" title="Diccionario de la Real Academia Española"'); btSearch += buttonCode('onclick="goSearch(4)" value="Google"');

var boxSearch = document.getElementById("searchform"); if (boxSearch) boxSearch.innerHTML += btSearch;

}

/*********** Fin de botonera ************/

// Add a "AS" link to your monobook "personal menu" list at the very // top of the page. // // Indicate where you would like "AS" to appear: //   pt-userpage, pt-mytalk, pt-preferences, //   pt-watchlist, pt-mycontris, pt-logout // gsASInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"

function ASLink {  var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data; var li = document.createElement( 'li' ); li.id = 'pt-AS'; var a = document.createElement( 'a' ); a.appendChild( document.createTextNode( 'AS' ) ); // eh, the css makes the text lowercase a.href = 'http://tools.wikimedia.de/~kate/cgi-bin/count_edits?dbname=enwiki_p&user=' + user; li.appendChild( a ); if ( ! gsASInsertBefore ) // append to end (right) of list {     document.getElementById( 'pt-logout' ).parentNode.appendChild( li ); }  else {      var before = document.getElementById( gsASInsertBefore ); before.appendChild( li, before ); } } if ( window.addEventListener ) window.addEventListener( 'load', ASLink, false ); else if ( window.attachEvent ) window.attachEvent( 'onload', ASLink );