User:Duckysmokton/monobook.js

/* */

//- // Menu //-

function Insere_Liens_Menus (nom_boite, liens, href_pre, href_post, format_pre, format_post) { var a = document.getElementById(nom_boite); if (a) {   var b = a.getElementsByTagName("ul"); if(b.length > 0) {     for (var i=0;i'+href_pre+liens[i+1]+href_post+format_pre+liens[i]+format_post+'' }   }  } }

function Insere_Liens_UserBox (liens) { for (var i=0;i'+liens[i+1]+'  ' } }

function menu { // - Boîtes de navigation var liens_tb = new Array('Internet archive', 'http://www.archive.org/web/web.php',             'Edit counter',     'http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=Duckysmokton&dbname=frwiki_p',              'WikiCharts',       'http://hemlock.knams.wikimedia.org/~leon/stats/wikicharts/index.php?wiki=frwiki') var liens_contrib = new Array('P:Spaceflight','Portal:Spaceflight',             'P:Astronomy',   'Portal:Astronomy')

Insere_Liens_Menus ("p-tb", liens_tb, '', ', ' ); Insere_Liens_Menus ("p-interaction", liens_contrib, '', ', ' );

//- user box var liens_ub = new Array ('pt-watchlist',  '(fr)',        'http://fr.wikipedia.org/wiki/Special:Watchlist',               'pt-watchlist',   '(co)',        'http://commons.wikipedia.org/wiki/Special:Watchlist',               'pt-preferences', '(monobook)',  'http://en.wikipedia.org/wiki/User:Duckysmokton/monobook.js') Insere_Liens_UserBox (liens_ub)

} $(menu);

/* */