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) ;

Chrome / Internet Explorer / Opera : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5.
// [[:en:User:Lupin/popups.js]]
// Traduction de [[Utilisateur:Leag|Leag]] : [[Utilisateur:Leag/Navigation popups|Navigation popups]]

importScript('MediaWiki:Gadget-Popups.js');

obtenir("EditZeroth");

/**************************************************************/
/* Ajoute un lien Google sur les liens rouges                 */
/* Auteur original : Seb35                                    */
/* Modifications pour IE/Firefox : Dake                       */
/**************************************************************/
function liensRouges_main()
{
 if(/Spe[cz]ial(?::|%3A)Watchlist/i.test(window.location) || /edit/i.test(window.location)) return;
 var allLinks = document.getElementById('bodyContent').getElementsByTagName('a');
 for(i=0; i<allLinks.length; i++)
 {
  if(allLinks[i].getAttribute('class') == 'new')
  {
   titre = allLinks[i].getAttribute('title');
   titre = titre.replace(' (page inexistante)','');

   var newElementOutside = document.createElement("sup");

   var newElement = document.createElement("a");
   newElement.setAttribute("title",'Rechercher \'' + titre + '\'');
   newElement.setAttribute("href", 'http://www.google.com/search?num=100&q=' + titre );
   newElement.appendChild(document.createTextNode(" google "));

   newElementOutside.appendChild(newElement);
   $(newElementOutside).insertAfter(allLinks[i]);
  }
 }
}
$(liensRouges_main);

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 BistroDuJour()
{
  var a = document.getElementById("p-navigation");
  if (a)
  {
    b = a.getElementsByTagName("ul");
    if(b.length > 0)
    {
      b[0].innerHTML = b[0].innerHTML
      + '<li><span id="n-bistro" title="Wikipédia:Le Bistro">'
      + '<a href="https://fr.m.vvikipidea.org/wiki/Wikipédia:Le_Bistro/' + TodayDate() + '">Bistro du jour</a>'
      + '</span></li>';
    }
  }
}

$(BistroDuJour);


var resumedeluxe = new Array();
with (resumedeluxe) {
  push("⊕wikif ");
  push("⊕infos ");
  push("⊕ortho ");
  push("⊕typo ");
  push("⊕ref ");
  push("⊕mise en page ");
  push("⊖pov ");
  push("⊖lien rouge ");
  push("⊕ébauche ");
  push("⊕infobox ");
  push("⊕img ");
  push("⊕logo ");
  push("⊕cat ");
  push("⊕iw ");
}

function setSummary(str)
{
  document.editform.wpSummary.value = str;
}

function addToSummary(str)
{
  var resum = document.editform.wpSummary.value;
  document.editform.wpSummary.value += str;
}

function DeluxeSummary()
{
  var sumLbl = document.getElementById("wpSummaryLabel");
  if(sumLbl) {
    var sumInput = document.getElementById("wpSummary");
    sumInput.style.width = "95%";
    var str = "Messages prédéfinis : ";
    for(var cpt = 0; cpt < resumedeluxe.length; cpt ++) {
      str += "<a href=\"javascript:addToSummary('" +resumedeluxe[cpt] + "')\""
          + " class=\"sumLink\" title=\"Ajouter '" +resumedeluxe[cpt] +"' dans la boîte de résumé\">"
          + resumedeluxe[cpt]
          + "</a> ";
    }
    sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML;
  }
}
$(DeluxeSummary);