Gebruiker:Basvb/nuwegscript.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.
/**
* Shows the number of speedy deletion requests
* based on the number of pages in [[:Categorie:Wikipedia:Nuweg]] in the top right menu.
* The script is based on the work of Sumurai8 at:
* https://nl.wikipedia.org/w/index.php?title=Gebruiker:Sumurai8/coachscript.js&oldid=23618958
* With additions by Basvb
* And improvements by/from the suggestions of Jurgen en Steinsplitter.
*/
var api = new mw.Api();
api.post( {
action: 'purge',
titles: 'User:Basvb/Nuweg'
} );
function nuwegscript() {
$.get(
mw.config.get( 'wgScript' ), {
title: 'User:Basvb/Nuweg',
action: 'render'
},
function( data ) {
$('<li></li>').html(data).insertBefore($('#p-personal>ul>li:first'));
}
);
}
setTimeout(function () {
"use strict";
nuwegscript();
}, 250);