Utilisateur:Julianedm/monobook.js
Un article de Wikipédia, l'encyclopédie libre.
Note : Après avoir publié la page, vous devrez forcer son rechargement pour voir les changements : Mozilla / Konqueror / Firefox : Shift-Ctrl-R, Internet Explorer / Opera : Ctrl-F5, Safari : Cmd-R.
<!-- ONGLETS --> /* <pre> */ function addLoadEvent(func) { if (window.addEventListener) window.addEventListener("load", func, false); else if (window.attachEvent) window.attachEvent("onload", func); } function nouvelOnglet() { var a = document.getElementById("p-cactions"); if (a) { b = a.getElementsByTagName("ul"); if(b.length > 0) { b[0].innerHTML = b[0].innerHTML + '<li><a href="http://fr.wikipedia.org/wiki/Wikipédia:Modèles/Maintenance">m</a></li>' + '<li><a href="http://fr.wikipedia.org/wiki/Portail:Altermondialisme">portail A</a></li>' + '<li><a href="http://fr.wikipedia.org/wiki/Projet:Altermondialisme">projet A</a></li>' + '<li><a href="http://fr.wikipedia.org/wiki/Special:Allpages/Portail">special</a></li>' } } } addLoadEvent(nouvelOnglet); <!-- generation de date utile pour accès au nom de fichier du bistrot du jour --> function TodayDate() { m = new Array("janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre"); today = new Date(); day = today.getDate(); year = today.getYear(); if (year < 2000) year = year + 1900; return (day + " " + m[today.getMonth()] + " " + year); } function Menu() { var tDate = TodayDate(); var a = document.getElementById("p-navigation"); if (a) { b = a.getElementsByTagName("ul"); if (b.length > 0) { b[0].innerHTML = b[0].innerHTML + '<li><span title="Page courante du Bistro">' + '<a href="/wiki/Wikipédia:Le Bistro/'+ tDate +'">Page courante du Bistro</a></span></li>' } } } addLoadEvent(Menu); /* </pre> */