User:UltimateKuriboh/monobook.js

// Null edit tab $('#ca-purge').after('null');

$('#ca-null a').click(   function    {        var url =  wgServer + wgScriptPath + '/api.php?action=query&prop=info&intoken=edit&titles=' + encodeURIComponent( wgPageName ) + '&format=json';        $.getJSON( url, function( data ) {           var editToken = data.query.pages[wgArticleId].edittoken; nullEdit(editToken); });   } );

function nullEdit(editToken) {   $.ajax(    {        url: mw.util.wikiScript( 'api' ),        data:        {            format: 'json',            action: 'edit',            title: mw.config.get( 'wgPageName' ),            token: editToken,            prependtext: ''        },        dataType: 'json',        type: 'POST',        success: function( data )        {            window.location.reload;        }    }); }