Gebruiker:Michielderoo/common.js
Opmerking: nadat u de wijzigingen hebt gepubliceerd is het wellicht nodig uw browsercache te legen.
- Firefox / Safari: houd Shift ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Internet Explorer / Edge: houd Ctrl ingedrukt terwijl u op Vernieuwen klikt of druk op Ctrl-F5
- Opera: druk op Ctrl-F5.
/* cleanup fancy signatures */
mw.loader.using('mediawiki.util', function () {
jQuery(document).ready(function ($) {
$('#bodyContent span:has(a[href^="/wiki/Overleg_gebruiker:"])').addClass('handtekening_uitbundig');
$('#bodyContent span:has(a[href^="/wiki/Gebruiker:"])').addClass('handtekening_uitbundig');
$('#bodyContent a[href^="/wiki/Gebruiker:"] *').addClass('handtekening_uitbundig');
$('#bodyContent a[href^="/wiki/Overleg_gebruiker:"] *').addClass('handtekening_uitbundig');
$('#bodyContent a[href^="/w/index.php?title=Gebruiker:"] *').addClass('handtekening_uitbundig');
$('#bodyContent a[href^="/w/index.php?title=Overleg_gebruiker:"] *').addClass('handtekening_uitbundig');
// next two rules have a problem if the background of the containing div is not white.
//$('#bodyContent a[href^="/wiki/Gebruiker:"]').addClass('handtekening_uitbundig');
//$('#bodyContent a[href^="/wiki/Overleg_gebruiker:"]').addClass('handtekening_uitbundig');
});
});
// [[File:Krinkle_RTRC.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
importScript('Gebruiker:Michielderoo/interwiki-tools-config.js');
importScript('Gebruiker:Michielderoo/interwiki-tools.js');
/**
* Extra tabblad statistieken bovenaan iedere pagina
* @author Krinkle, 2012
* @version 2 (20120830)
* @source nl.wikipedia.org/wiki/Wikipedia:Scriptbibliotheek#Paginastatistieken
*/
mw.loader.using('mediawiki.util', function () {
jQuery(document).ready(function ($) {
var currentDate = new Date();
var month = currentDate.getMonth() + 1;
var monthPadded = month < 10 ? ('0' + month) : month;
var year = currentDate.getFullYear();
/*
mw.util.addPortletLink(
'p-tb',
'http://tools.wmflabs.org/xtools/articleinfo/?project=nl.wikipedia.org&article=' + mw.util.wikiUrlencode( wgPageName ),
'Statistieken',
'ca-stats',
'Statistieken voor deze pagina'
);
mw.util.addPortletLink(
'p-tb',
'https://tools.wmflabs.org/pageviews/?project=nl.wikipedia.org&platform=all-access&agent=user&range=latest-20&pages=' + mw.util.wikiUrlencode( wgPageName ),
'Bezoeken',
'ca-stats',
'Statistieken voor deze pagina'
);
*/
mw.util.addPortletLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:De_kroeg", "De Kroeg", "n-kroeg", "De kroeg");
mw.util.addPortletLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:Te_beoordelen_pagina%27s", "TBP", "n-tbp", "Te beoordelen pagina's");
mw.util.addPortletLink("p-navigation", "http://nl.wikipedia.org/wiki/Wikipedia:Controlelijst_vandalismebestrijding", "Controlelijst", "n-tbp", "Controlelijst");
});
});