Gebruiker:Robin Hood~afwiki/monobook.js
Let wel: Na die wysiging is dit dalk nodig om u blaaier se kasgeheue te verfris voordat u die veranderinge sal sien:
- Firefox / Safari: hou Shift en kliek Herlaai, of druk Ctrl-F5 of Ctrl-R (⌘-R op 'n Mac)
- Google Chrome: Druk Ctrl-Shift-R (⌘-Shift-R op 'n Mac)
- Internet Explorer / Edge: Hou Ctrl en kliek Refresh, of druk Ctrl-F5
- Opera: Gaan na Kieslys → Settings (Opera → Preferences op 'n Mac) en dan na Privacy & security → Clear browsing data → Cached images and files.
function addLoadEvent(func) {
if (window.addEventListener) {
window.addEventListener("load", func, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", func);
}
}
// AJOUTE DEUX 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/Gebruiker: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/Gebruiker: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/Gebruiker: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="Wikipedia:Ambassade" '
+ 'href="/w/index.php?title=Wikipedia:Ambassade&action=purge">'
+ 'Ambassade</a></li>'
+ '<li><a style="display: inline" title="Tous mes suivis" '
+ 'href="http://af.wikipedia.org/w/wiki.phtml?title=Spesiaal:Watchlist&days=0">'
+ 'Tous les jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://af.wikipedia.org/w/wiki.phtml?title=Spesiaal:Watchlist&days=3">'
+ '3 jours</a>'
+ '<a style="display: inline" title="Suivis" '
+ 'href="http://af.wikipedia.org/w/wiki.phtml?title=Spesiaal:Watchlist&days=1">'
+ '1 jour</a></li>'
}
}
}
addLoadEvent(ajoutLiens);
if ( mw.config.get( 'wgCanonicalNamespace') == "User" || mw.config.get( 'wgCanonicalNamespace') == "User_talk" ) {
addLoadEvent(ajoutOngletStructure);
addLoadEvent(ajoutOngletJS);
addLoadEvent(ajoutOngletCSS);
}
// AJOUTE LES LIENS DANS LA BOÎTE À OUTILS
$(function () {
if ( wgCanonicalNamespace == "User" || mw.config.get( 'wgCanonicalNamespace') == "User_talk" ) {
url = wgServer
+ "/w/index.php?title=Special:Log&user="
+ wgTitle.split("/")[0];
}
else if ( mw.config.get( '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=afwiki_p", "Compteur d'éditions", "ca-editcount");
mw.util.addPortletLink("p-cactions", url, "Journal", "pt-logs");
});