Utilisateur:ObiWan Kenobi/monobook.js
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.importScript('User:EDUCA33E/LiveRC.js');
document.write('<script type="text/javascript" src="'
+ 'http://fr.wikipedia.org/w/index.php?title=Utilisateur:GôTô/objects.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
document.write('<script type="text/javascript" src="'
+ 'http://fr.wikipedia.org/w/index.php?title=Utilisateur:Dake/monobook.js/deluxehistory.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
var oldEditsectionLinks = true;
// Auteur : Anakin
// Dernière mise à jour : 11 décembre 2005
function ImageUse()
{
var element = document.getElementById('ca-nstab-image');
if (element)
{
var imagename = element.firstChild.href;
var indexofname;
if (imagename.indexOf("http://") != -1)
indexofname = imagename.indexOf(":", 6);
else
indexofname = imagename.indexOf(":");
imagename = imagename.substring(indexofname + 1);
var indexofampersand = imagename.indexOf("&");
if (indexofampersand != -1)
imagename = imagename.substring(0, indexofampersand);
var li = document.createElement('li');
li.id = 'ca-imageuse';
var a = document.createElement('a');
a.appendChild(document.createTextNode("Voir l'utilisation"));
a.href = 'http://www.juelich.de/avatar/check-usage/check-usage.php?filename=' + imagename + '&template';
li.appendChild(a);
document.getElementById('ca-nstab-image').parentNode.appendChild(li);
}
}
$(ImageUse);
// auteur : Utilisateur:Dake
function OngletGoogle() {
var a = document.getElementById("p-cactions");
if (a)
{
var pageName = document.title.replace(" - Wikipédia", "");
b = a.getElementsByTagName("ul");
if(b.length > 0)
{
b[0].innerHTML = b[0].innerHTML
+ '<li id="ca-nstab-user"><img src="http://www.google.com/intl/en/logos/Logo_60wht.gif" height="20px">'
+ '<a href="http://www.google.fr/search?num=20&hl=en&safe=off&q=site%3Afr.wikipedia.org+' + pageName + '&btnG=Search">'
+ '(fr)</a>'
+ '<a href="http://www.google.fr/search?num=20&hl=en&safe=off&q=' + pageName + '&btnG=Search">'
+ '(web)</a>'
+ '</li>';
}
}
}
$(OngletGoogle);
// Auteur : Anakin
// Dernière mise à jour : 11 décembre 2005
function CategoryTree()
{
var element = document.getElementById('ca-nstab-category');
if (element)
{
var categoryname = element.firstChild.href;
categoryname = categoryname.substring(7);
var wikiname = categoryname.substring(0, categoryname.indexOf('.'));
var indexofname = categoryname.indexOf(":") + 1;
categoryname = categoryname.substring(indexofname);
var indexofampersand = categoryname.indexOf("&");
if (indexofampersand != -1)
categoryname = categoryname.substring(0, indexofampersand);
var li = document.createElement('li');
li.id = 'ca-categorytree';
var a = document.createElement('a');
a.appendChild(document.createTextNode("Arborescence"));
a.href = 'http://tools.wikimedia.de/~daniel/WikiSense/CategoryTree.php?wiki=' + wikiname + '&art=on&cat=' + categoryname;
li.appendChild(a);
document.getElementById('ca-nstab-category').parentNode.appendChild(li);
}
}
$(CategoryTree);
// Onglet Purge
function OngletPurge() {
var a = document.getElementById("p-cactions");
if (a)
{
var pageName = document.title.replace(" - Wikipédia", "");
b = a.getElementsByTagName("ul");
if(b.length > 0)
{
b[0].innerHTML = b[0].innerHTML
+ '<li id="ca-nstab-user">'
+ '<a href="/w/index.php?action=purge&title=' + pageName + '">purger</a>'
+ '</li>';
}
}
}
// Onglet Purge
$(OngletPurge);
/*************************************/
/* Remplissage automatique du résumé */
/* Auteur : Goto, modifié par Dake */
/*************************************/
function addToSummary(str)
{
document.editform.wpSummary.value += " " + str
}
function DeluxeSummary()
{
var sumLbl = document.getElementById("wpSummaryLabel")
if (sumLbl)
{
//élargissement boite de résumé
var sumInput = document.getElementById("wpSummary")
sumInput.style.width = "90%"
var titles = new Array()
titles.push("ortho")
titles.push("style")
titles.push("wikif")
titles.push("+ ébauche")
titles.push("cat")
titles.push("+ interwiki")
titles.push("corr lien int")
titles.push("typo")
titles.push("étoff.")
titles.push("réorg")
titles.push("avis")
var inputs = new Array()
inputs.push("ortho")
inputs.push("style")
inputs.push("wiki")
inputs.push("+ {{ébauche}}")
inputs.push("+/- cat")
inputs.push("+ liens interwiki")
inputs.push("correction lien interne")
inputs.push("typo/coquille")
inputs.push("ajout d’infos")
inputs.push("réorganisation, changement de plan...")
inputs.push("avis ou commentaire")
var str = ""
for (var cpt = 0; cpt < titles.length; cpt ++)
{
str += "<a href=\"javascript:addToSummary('" + inputs[cpt] + "')\""
+ " class=\"sumLink\" title=\"Ajouter '" + inputs[cpt] +"' dans la boîte de résumé\">"
+ titles[cpt]
+ " ·</a> "
}
sumLbl.innerHTML = str + "<br />" + sumLbl.innerHTML
}
}
$(DeluxeSummary);
function editerPremierParagraphe() {
var urlRegexp = /\/wiki\//;
var url = self.location.pathname.split('&')[0].replace(urlRegexp, "/w/index.php?title=");
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="' + url + '&action=edit§ion=0">modifier 1er paragraphe</a></li>';
}
}
}
$(editerPremierParagraphe);
obtenir("RevertDiff");