Gebruiker:Kippenvlees1/nuwegscript.js
Opmerking: na het publiceren is het wellicht nodig uw browsercache te legen om de veranderingen te zien.
- Firefox / Safari: houd Shift ingedrukt terwijl u:je 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)
- Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
/**
* Copy of Gebruiker:Basvb/nuwegscript.js with fix
*
* 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:first-of-type>li:first'));
}
);
}
setTimeout(function () {
"use strict";
nuwegscript();
}, 250);