FANDOM


(function($, mw) {
 var ug = mw.config.get("wgUserGroups").join(' ');
 if (mw.config.get("wgCanonicalSpecialPageName") === "Contributions" && ug.indexOf('sysop') + ug.indexOf('vstf') + ug.indexOf('staff') + ug.indexOf('helper') > -5)) {

function doBlock() {

     var zakresy = ['83.28.0.0/16','83.9.0.0/16','83.6.0.0/16','95.49.0.0/16','79.191.0.0/16','79.185.0.0/16','178.42.0.0/16']
     var dlugosc = prompt('Podaj długość blokady','2 tygodnie'),
     for(i=0;i<zakresy.length; x++)

{

     new mw.Api().post({
     format: 'json',
     action: 'block',
     user: zakresy[i],
     expiry: dlugosc,
     nocreate: 0,
     autoblock: 0,
     reason: 'Wandalizm',
     token: token
     })
     .done(function(d) { 
       if (!d.error) {
         console.log(username+' has been blocked successfully!');
       } 
       else {
         alert('Failed to block '+username+': '+ d.error.code);
       }
     })
     .fail(function() {
       alert('Failed to block '+username+'!');

}

     });
   }

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Więcej z Fandomu

Losowa wiki