Utilisateur:Fourvin/monobook.js
Apparence
Note : après avoir enregistré la page, vous devrez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
Mozilla / Firefox / Konqueror / Safari : maintenez la touche Majuscule (Shift) en cliquant sur le bouton Actualiser (Reload) ou pressez Maj-Ctrl-R (Cmd-R sur Apple Mac) ;
Firefox (sur GNU/Linux) / Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.<!--
function nouvelleBoite() {
var l = document.getElementById("column-one");
if (l) {
l.innerHTML = l.innerHTML
+ '<div class="portlet" id="p-nbx">'
+ ' <h5>Boîte perso</h5>'
+ ' <div class="pBody">'
+ ' <ul>'
+ ' <li><a href="http://fr.wikipedia.org/w/index.php?title=Sp%C3%A9cial:Liste_de_suivi&hideBots=1">Suivi</a> - <a href="http://fr.wikipedia.org/w/index.php?title=Utilisateur:Fourvin/ToDo&action=edit">ToDo</a> - <a href="http://fr.wikipedia.org/wiki/Discussion_Projet:Cin%C3%A9ma#Bottom">DPC</a><BR /><HR>'
+ ' <li><a href="http://fr.wikipedia.org/wiki/Liste_des_salles_de_cin%C3%A9ma_%C3%A0_Paris">Salles de ciné Paris</a><BR />'
+ ' <a href="http://fr.wikipedia.org/wiki/Bases_de_donn%C3%A9es_cin%C3%A9matographiques_de_l%27Internet">BD ciné</a> - <a href="http://fr.wikipedia.org/wiki/Liste_de_festivals_de_cin%C3%A9ma">Festivals</a>'
+ ' <li style="font-size:7px">[[Catégorie:Adaptation d’une œuvre littéraire au cinéma]]'
+ ' <li><a href="http://french.imdb.com/search">IMDb</a> - <a href="http://allocine.fr">AlloCiné</a>'
+ ' <li>Scripts <a href="http://okki666.free.fr/wikipedia/">Gq</a> - <a href="http://bulat.nerim.net/wikipedia/">filmo</a>'
+ ' <li><a href="http://wiki.beyondunreal.com/cgi-bin/reverser.cgi">Reverser</a><BR /><HR>'
+ ' <li><a href="http://fr.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:Le_Bistro&action=purge">Le Bistro</a>'
+ ' <li><a href="http://fr.wikipedia.org/wiki/Special:Newpages">Nouvelles pages</a>'
+ ' </ul>'
+ ' </div>'
+ '</div> ';
}
}
$(nouvelleBoite);
function insertAfter(parent, node, referenceNode) {
parent.insertBefore(node, referenceNode.nextSibling);
}
function OptimizedSuivi()
{
if (document.URL.indexOf("http://fr.wikipedia.org/wiki/Special:Watchlist")==0 ||
document.URL.indexOf("http://fr.wikipedia.org/w/index.php?title=Special:Watchlist")==0 ){
var allDays = document.getElementsByTagName("ul");
for (i=0; i<allDays.length; i++) {
if (allDays[i].getAttribute("class") == "special") {
var artList = allDays[i].getElementsByTagName("li");
for (j=0; j<artList.length; j++) {
var elem = artList[j];
var aTag = elem.getElementsByTagName("a");
var articleName = aTag[0].getAttribute("title");
var stopWatch = "/w/index.php?title=" + articleName + "&action=unwatch"
var newElement = document.createElement("a");
newElement.setAttribute("href",stopWatch);
var newText = document.createTextNode("stop");
newElement.appendChild(newText);
var newPar = document.createTextNode(") (")
// séparation des cas (nouvel article, ou déjà existant)
if (aTag[0].childNodes[0].data == "diff") {
insertAfter(elem, newPar, aTag[1]);
} else {
insertAfter(elem, newPar, aTag[0]);
}
insertAfter(elem, newElement, newPar);
}
}
}
}
}
$(OptimizedSuivi);
-->