Utilisateur:Gonioul/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.

/* <pre><nowiki> */
 
var oldEditsectionLinks = true;
 
obtenir("BistroDuJour");
 
//obtenir("ResumeDeluxe");
 
obtenir("OptimizedSuivi");
 
//obtenir("OngletPurge");
 
//obtenir("EditZeroth");
 
//obtenir("HotCats");
 
//obtenir("DeluxeBar");
 
//obtenir("RevertDiff");
 
//obtenir("AdvancedResearch");
 
obtenir("HistoryNumDiff");
 
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 + "/" + 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);
  }
}
addOnloadHook(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;
popupFixDabs = true;
popupOnEditSelection = false;
popupRevertSummaryPrompt = 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('/Special:Recentchanges') != -1
 && location.href.indexOf('/Special:Recentchangeslinked') == -1)) {
  addLoadEvent(refresh1min);
}
 
if (location.href.indexOf('/Special:Watchlist') != -1
 || location.href.indexOf('/Special:Liste_de_suivi') != -1) {
  addLoadEvent(refresh5min);
}
 
//loadJs('Utilisateur:EDUCA33E/LiveRC.js');
 
/* </nowiki></pre> */