Utilisateur:Neerdael/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./* <pre><nowiki> */
window.addContribLinkNearTalkPageInContributions_editcount = true;
var oldEditsectionLinks = true;
obtenir('BistroOracle');
obtenir("BistroDuJour");
//obtenir("ResumeDeluxe");
obtenir("OptimizedSuivi");
//obtenir("OngletPurge");
//obtenir("EditZeroth");
//obtenir("HotCats");
//obtenir("DeluxeBar");
//obtenir("RevertDiff");
//obtenir("AdvancedResearch");
obtenir("HistoryNumDiff");
//importScript('Projet:Impression/lienposter.js');
function addArticleTrafficStatistics()
{
var histo = document.getElementById("ca-history");
if(histo)
{
var lien = document.createElement("a");
var today = new Date();
var annee = today.getYear() + 1900;
var mois = new String(today.getMonth() + 1);
if(mois.length < 2)
{
mois = "0" + mois;
}
lien.setAttribute("href", "http://stats.grok.se/fr/" + annee + mois + "/" + mw.config.get('wgPageName'));
lien.appendChild(document.createTextNode("Consultation"));
var stats = document.createElement("li");
stats.setAttribute("id", "ca-stats");
stats.appendChild(lien);
histo.parentNode.insertBefore(stats, histo.nextSibling);
}
}
$(addArticleTrafficStatistics);
/*
* Navigation Supp
*/
document.write('<script type="text/javascript" src="'
+ 'http://fr.wikipedia.org/w/index.php?title=User:Gonioul/navigationsupp.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/*
* CommonsHelper
*/
document.write('<script type="text/javascript" src="'
+ 'http://fr.wikipedia.org/w/index.php?title=User:Gonioul/commonshelper.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/*
* Recent Changes auto hilight
*/
document.write('<script type="text/javascript" src="'
+ 'http://fr.wikipedia.org/w/index.php?title=User:Gonioul/rcautohilight.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/*
* Navigation Pop-ups
*/
//document.write('<script type="text/javascript" src="'
// + 'http://fr.wikipedia.org/w/index.php?title=User:Leag/popups-strings-fr.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//document.write('<script type="text/javascript" src="'
// + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
// + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// Utilisateur:Spooky/JSScripts/Navigation popups
// Localisation
//popupDabRegexp = '([{][{]\\s*homonymie|homonymie\\s*[}][}])';
popupDabRegexp = '([{][{]\\s*homonymie|homonymie\\s*[}][}]|[{][{]\s*Personnes homonymes\s*[}][}])';
popupStubRegexp ='[{][{]\\s*ébauche';
//TODO: popupImageVarsRegexp = 'image|image_(?:file|skyline|name|flag|seal)|cover|badge|logo';
//removeTitles = false;
popupFixRedirs = true;
popupFixDabs = true;
popupOnEditSelection = false;
popupRevertSummaryPrompt = true;
//popupUseAPI=true;
/*
* Auto Refresh
*/
function refresh()
{
window.location.href = window.location;
}
function refresh1min()
{
// the timeout value should be the same as in the "refresh" meta-tag
setTimeout( "refresh()", 60000 );
}
function refresh5min()
{
// the timeout value should be the same as in the "refresh" meta-tag
setTimeout( "refresh()", 300000 );
}
if (location.href.indexOf('/Special:Modifications_r%C3%A9centes') != -1
|| location.href.indexOf('/Sp%C3%A9cial:Modifications_r%C3%A9centes') != -1
|| (location.href.indexOf('/Special:Recentchanges') != -1
&& location.href.indexOf('/Special:Recentchangeslinked') == -1)) {
$(refresh1min);
}
if (location.href.indexOf('/Special:Watchlist') != -1
|| location.href.indexOf('/Special:Liste_de_suivi') != -1
|| location.href.indexOf('/Sp%C3%A9cial:Liste_de_suivi') != -1) {
$(refresh5min);
}
//importScript('Utilisateur:EDUCA33E/LiveRC.js');
/* </nowiki></pre> */