User:Kingpin13/monobook.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
npp_enabled = true;
npp_refresh = 2;
npp_num_pages = 9;

mw.loader.load('https://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');

//importScript('User:EpochFail/No_Biting.js');

//importScript('User:Kingpin13/csdhelper.js');  //[[User:Ale_jrb/Scripts]]

//importScript('User:Dr pda/prosesize.js');

//importScript('Wikipedia:Dazzle!/code.js');
//if( typeof( DazzleConfig ) == 'undefined' ) DazzleConfig = {};
//DazzleConfig.edit_summary = ") ([[WP:DZ!|Dazzle]]";

//importScript('User:Ale_jrb/Scripts/igloo.js'); // [[User:Ale_jrb/Scripts/igloo]]

importScript('User:Sander Säde/quickpreview.js');

importScript('User:Mr.Z-man/rollbackSummary.js');

//importScript('User:Animum/easyblock.js'); //[[User:Animum/easyblock.js]]

//importScript('User:X!/userrights.js');

//importScript('User:Mr.Z-man/moverevert.js');

//importScript('User:Mr.Z-man/closeAFD.js');

//importScript('User:Mr.Z-man/hideClosedAFD.js');

//importScript('User:Ultraexactzz/afdsort.js');
//importScript('User:Ultraexactzz/afdsort2.js');

//importScript('User:TheDJ/printdialog.js');

// [[User:Mr.Z-man/moverevert.js]] - Revert page moves
//importScript('User:Mr.Z-man/moverevert.js');

importScript('User:Prodego/moverevert.js');

importScript('User:Kingpin13/kill.js');

/* copied from User:Prodego/monobook.js */
function IPhandler(PossIP)
{
           var count = 0
           while (perp != -1)
           {
           var IP;
           var perp = PossIP.indexOf('.');
           if (perp == -1)
           {
            IP = PossIP.substring(0, PossIP.length)
           }
           else
           {
           IP = PossIP.substring(0, perp);
           }
           var check = Iptest(IP);
           if (check != 1)
           {
           return false;
           }
           else
           {
           PossIP = PossIP.substring(perp + 1, PossIP.length)
           count++;
           }    
}
       if (count == 4)
       return true;  
       else
       return false;
}
function Iptest(Num)
{
    if (Num >=0 && Num <= 255)
    return 1;
}