Uzanto:Robin Hood~eowiki/monobook.js
Notu:Post publikigo forviŝu la kaŝmemoron de via foliumilo por vidi la ŝanĝojn.
- Firefox / Safari: Premu majuskligan klavon klakante Reŝarĝi, aŭ premu aŭ Stir-F5 aŭ Stir-R (⌘-R kun Makintoŝo)
- Google Chrome: Premu Stir-majuskligklavon-R (⌘-Majuskligklavo-R kun Makintoŝo)
- Interreta Esplorilo / Edge: Premu Stir klakante Refreŝu, aŭ premu Stir-F5
- Opera: Premu Stir-F5.
function addLoadEvent(func) {
if (window.addEventListener) {
window.addEventListener("load", func, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", func);
}
}
// AJOUTE DEŬ ONGLETS MONOBOOK
function ajoutOngletJS() {
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/Vikipediisto:Robin_Hood/monobook.js">'
+ 'js</a></li>';
}
}
}
function ajoutOngletCSS() {
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/Vikipediisto:Robin_Hood/monobook.css">'
+ 'css</a></li>';
}
}
}
// AJOUTE UN ONGLET STRUCTURE
function ajoutOngletStructure() {
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/Vikipediisto:Robin_Hood/Structure">'
+ 'Structure</a></li>';
}
}
}
// AJOUTE LES LIENS DANS LA BOÎTE DE NAVIGATION
function ajoutLiens() {
var a = document.getElementById("p-navigation");
if (a) {
b = a.getElementsByTagName("ul");
if(b.length > 0) {
b[0].innerHTML = b[0].innerHTML
+ '<li><a style="display: inline" title="Vikipedio:Ambasadorejo" '
+ 'href="/w/index.php?title=Vikipedio:Ambasadorejo&action=purge">'
+ 'Ambasadorejo</a></li>'
+ '<li><a style="display: inline" title="Atentaro" '
+ 'href="http://eo.wikipedia.org/w/wiki.phtml?title=Speciala:Watchlist&days=0">'
+ 'Ĉiuj tagoj</a>'
+ '<a style="display: inline" title="Atentaro" '
+ 'href="http://eo.wikipedia.org/w/wiki.phtml?title=Speciala:Watchlist&days=3">'
+ '3 tagoj</a>'
+ '<a style="display: inline" title="Atentaro" '
+ 'href="http://eo.wikipedia.org/w/wiki.phtml?title=Speciala:Watchlist&days=1">'
+ '1 tago</a></li>'
}
}
}
addLoadEvent(ajoutLiens);
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) {
addLoadEvent(ajoutOngletJS);
addLoadEvent(ajoutOngletStructure);
addLoadEvent(ajoutOngletCSS);
}
// AJOUTE LES LIENS DANS LA BOÎTE À OUTILS
$(function () {
if ( wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk" ) {
url = wgServer
+ "/w/index.php?title=Special:Log&user="
+ wgTitle.split("/")[0];
}
else if ( wgCanonicalNamespace == "Special" ) {
return;
}
else {
url = wgServer
+ "/w/index.php?title=Special:Log&page="
+ wgPageName;
}
mw.util.addPortletLink("p-tb", "http://tools.wikimedia.de/~interiot/cgi-bin/count_edits?user=Robin+Hood&dbname=eowiki_p", "Redaktetaj nombrilo", "ca-editcount");
mw.util.addPortletLink("p-cactions", url, "loglibroj", "pt-logs");
});