function lienStation() {
var a = document.getElementById("p-personal");
if (a) {
var b = a.getElementsByTagName("ul");
if(b.length > 0) b.innerHTML = b.innerHTML + '<li id="ca-nstab-user"><a href="https://wiki386.com/fr/Utilisateur:Ambigraphe/Station">Station</a></li>';
}
}
//addOnloadHook(lienStation);
// MathJax for Wikipedia
if (false && ((window.unsafeWindow === null ? window : unsafeWindow).MathJax === null)) {
//
// Replace the span with MathJax scripts of type math/tex
//
// à faire : remplacer tex/html par tex
var relatex = /^\s*\$\s*(\\scriptstyle)?\s*(*?)\s*\$\s*$/, texelts, found = 0;
if (document.getElementsByClassName === undefined) {
texelts = ;
for (var i = document.all.length; i >= 0; i--) if (document.all.className == 'tex') texelts.append(document.all)
} else texelts = document.getElementsByClassName('tex');
for (var i = texelts.length - 1; i >= 0; i--) {
var elt = texelts, parent = elt.parentNode;
if (elt.nodeName == 'IMG') {
code = elt.alt;
var sp = document.createElement('span');
sp.className = 'tex';
parent.replaceChild(sp, elt);
sp.appendChild(elt);
elt = sp;
} else if (relatex.test(elt.innerHTML)) {code = RegExp.$2} else continue;
if (/(^|)(\\\\)*(\\eqnarray|\\\]|\\\[|\\newcommand|\\hspace)/.test(code)) {
//var sp = document.createElement('span');
elt.className = 'error';
elt.innerHTML = "Erreur de codage : "+RegExp.$1+" non pris en charge par le serveur.";
//parent.replaceChild(sp, elt);
} else {
found++;
var script = document.createElement('script');
script.type = "math/tex";
code = code.replace(/&/g, '&');
code = code.replace(/</g, ' \\lt ').replace(/>/g, ' \\gt ').replace(/? /g, '~').replace(/&/g, '&').replace(/(\\)(d|t)?(frac|binom)\b\s*()\s*()/g, '$1$2$3{$4}{$5}'); // .replace(/(\\\\)(\)/g, '\\\\');
if (/^(CENTER|DD|TD)$/.test(parent.nodeName)) {script.innerHTML = '\\displaystyle '+code;}
else script.innerHTML = code;
if (parent.lastChild == elt) {parent.appendChild(script);}
else {parent.insertBefore(script, elt.nextSibling);}
}
};
if (found) {// Configure MathJax
var head = document.getElementsByTagName("head"),script = document.createElement("script");
script.type = "text/x-mathjax-config";
script.innerHTML = "MathJax.Hub.Config({jax: , extensions: , tex2jax: {processEnvironments: false}, TeX: {extensions: , Macros: {empty: '\\\\emptyset', N: '\\\\mathbb N', Z: '\\\\mathbb Z', Q: '\\\\mathbb Q', R: '\\\\mathbb R', real: '\\\\mathbb R', reals: '\\\\mathbb R', C: '\\\\mathbb C', Complex: '\\\\mathbb C', H: '\\\\mathbb H', Alpha: '\\\\mathrm A', Beta: '\\\\mathrm B', Epsilon: '\\\\mathrm E', Zeta: '\\\\mathrm Z', Eta: '\\\\mathrm H', Iota: '\\\\mathrm I', Kappa: '\\\\mathrm K', Mu: '\\\\mathrm M', Nu: '\\\\mathrm N', Rho: '\\\\mathrm R', Tau: '\\\\mathrm T', Chi: '\\\\mathrm X', and: '\\\\wedge', infin: '\\\\infty', part: '\\\\partial', sgn: '\\\\operatorname{sgn}', sub: '\\\\subset', bold: '\\\\mathbf'}}, preRemoveClass: 'tex'});";
head.appendChild(script);
// Load MathJax and have it process the page
script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://cdn.mathjax.org/mathjax/latest/MathJax.js";
script.innerHTML = 'MathJax.Hub.Startup.onload()';
head.appendChild(script);
alert("tex");
}
}