User:Steinsplitter/adminwatch.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
Documentation for this user script can be added at User:Steinsplitter/adminwatch. |
/**
* Add useful information about requests at the top of the page.
* [[nl:User:Basvb]] (https://nl.wikipedia.org/w/index.php?title=Gebruiker:Basvb/nuwegscript.js&oldid=33744897);
* Derivative work: [[User:Steinsplitter]];
* Improved by [[:de:Benutzer:Gorlingor]]
*/
mw.loader.using( 'mediawiki.api', $( document ).ready( function () {
'use strict';
var api = new mw.Api();
api.post( {
action: 'purge',
titles: 'User:Steinsplitter/adminwatch.js/raw'
} );
api.get( {
action: 'parse',
page: 'User:Steinsplitter/adminwatch.js/raw'
} ).done( function ( data ) {
$( '<li></li>' )
.html( data.parse.text[ '*' ] )
.insertBefore( $( '#p-personal > ul > li:first' ) );
} );
} ) );