Utilisateur:Eeppeliteloop/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.<!-- <nowiki> -->
function nouvelOnglet()
{
var a = document.getElementById("p-cactions");
if (a)
{
b = a.getElementsByTagName("ul");
if(b.length > 0)
{
b[0].innerHTML = b[0].innerHTML
+ '<li id="ca-nstab-user">'
+ '<a href="/wiki/Modèle:Modèles principaux 1">'
+ 'modèles</a></li>';
}
}
}
$(nouvelOnglet);
/* Lien Editcount */
var tabAction = "p-cactions";
function addECButton()
{
if ( window.location.href.indexOf('Contributions') < 0) return;
var c = document.getElementById('contentSub');
var a = c.getElementsByTagName('a');
name = a[0].innerHTML;
var l = document.getElementById(tabAction);
t = l.innerHTML;
ind = t.toLowerCase().indexOf("</ul>");
before = t.substring(0,ind);
after = t.substring(ind);
pitem = "<li><a href='http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user="+escape(name)+"&dbname=frwiki_p'>"+
"<div id='EditCount' style='display:inline;'>" +
"Stats" +
"</div></a></li>";
l.innerHTML = before + pitem + after ;
}
$(addECButton);
function externISBN() {
for (var i = 0; i < document.links.length; i++)
{
if( document.links[i].href.match(/isbn=(.*)/) ) {
document.links[i].href='http://catalogue.banq.qc.ca/cgi-bin/bestn?id=%255FZjow%252F%25E2%257Dt%252DJQNFwwdX&act=8&auto=0&nli=3&v0=0&npro=3&fpro=10&x=27&y=14&t0='+RegExp.$1+'&i0=10&s0=5&l0=0&t1=&i1=1&s1=5&l1=0&t2=&i2=2&s2=5&v1=0&v2=0&v3=0&v4=0&sy=&ey=&scr=1';
}
}
}
$(externISBN);
function editerPremierParagraphe() {
var modif = document.getElementById("ca-edit").getElementsByTagName("a");
if (modif.length <= 0) return;
var url = modif[0].href;
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 + '§ion=0">1<small>er</small> paragraphe</a></li>';
}
}
}
$(editerPremierParagraphe);
<!-- </nowiki> -->