User:Access Denied/monobook.js

importScript('User:Peter Karlsen/recent2.js');
importScript('User:Gracenotes/rollback.js');
importScript('User:AzaToth/twinkle.js');
if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {};
TwinkleConfig.openTalkPageOnAutoRevert                  =       true;
TwinkleConfig.watchRevertedPages                        =       [];
TwinkleConfig.watchSpeedyPages                          =       [];
TwinkleConfig.watchWarnings                             =       false;
TwinkleConfig.showRollbackLinks                         =       [];
function warnVandal()
{
  if( document.URL.indexOf("&action=roll") > 0)
  {
    vandalsTalkPageInitialIndex = document.URL.indexOf("from") + 5;
    vandalsTalkPageCharacterCount = document.URL.indexOf("&token") - document.URL.indexOf("from") - 5;
    vandalsName = document.URL.substr(vandalsTalkPageInitialIndex, vandalsTalkPageCharacterCount);
    while(vandalsName.indexOf('+') >= 0)
    {
      vandalsName = vandalsName.replace('+', '_');
    }
    vandalsTalkPage = "User_talk:" + vandalsName;
    nameOfVandalizedPage = wgPageName;
    while(nameOfVandalizedPage.indexOf('_') >= 0)
    {
      nameOfVandalizedPage = nameOfVandalizedPage.replace('_', ' ')
    }
    setTimeout("window.open(\"" + mw.config.get('wgServer') + mw.config.get('wgScriptPath') + '/index.php?title=' + vandalsTalkPage + "&action=edit&preview=yes&vanarticle=" + nameOfVandalizedPage + "&type=vand&count=1" + "\", \'twinklewarnwindow\', \'location=no,toolbar=no,status=no,directories=no,scrollbars=yes,width=1200,height=800\')", 3000 );
  }
}
$(warnVandal);
importScript('User:Access Denied/easyigloo.js');
importScript('User:Lupin/recent2.js');
importScript('User:TheDJ/qui.js');
importScript('User:John254/mass rollback.js');
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript('User:Mr.Z-man/moverevert2.js');
importScript('User:X!/userrights.js');
importScript('User:Steel359/protection.js');
importScript('User:Tim_Song/afchelper4.js');
importScript('User:Rami_R/rfppClerk.js');
importScript('User:Mr.Z-man/closeAFD.js');
importScript('User:Dr pda/persondata.js');
importScript('User:ais523/editcount.js'); //[[User:ais523/editcount.js]]
importScript('User:Access Denied/toplinks.js');
importScript('User:Ais523/votesymbols.js');
importScript('User:Ioeth/friendly.js');
importScript('User:Giftiger wunsch/toolbox.js');
importScript('User:Ale_jrb/Scripts/csdhelper.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:Pyrospirit/metadata.js');
importScript('User:Pyrospirit/metadata/assesslinks.js');
importScript('User:EpochFail/No_Biting.js');
importScript('User:Ale_jrb/Scripts/igloo.js'); // [[User:Ale_jrb/Scripts/igloo]]
importScript('User:Ale_jrb/Scripts/statusCheck.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:Xenocidic/statusChanger2.js');
importScript('User:Ais523/watchlistnotifier.js');
importScript('User:Ais523/adminrights.js');
importScript('User:TFOWR/easyDiff2.js');
// Modifying script by ais253, script starts below
//[[User:ais523 non-admin/adminrights.js]]
//
// This script highlights bluelinks to admins' userpages or talkpages in bodyContent (that is, everything but the tabs, personal
// links at the top of the screen and sidebar) by giving them a cyan background. Please import this script using importScript,
// rather than copying the code, as the list of admins is hard-coded for performance and if you copy the code the list won't update
// with time (I update it from time to time). You can do this by substing Template:js with this script's name as an argument in your
// monobook.js.
//
// If you want a colour other than cyan, add
// .ais523_adminrights_admin {background-color: #FFFF00 !important}
// (or any other colour code) to your monobook.css file.

//Update this list at
//http://en.wikipedia.org/w/index.php?title=Special:Listusers&limit=5000&group=sysop&ais523update=y
var bcratrights=new Array();

bcratrights['Andrevan']=1;
bcratrights['Anonymous%20Dissident']=1;
bcratrights['Avraham']=1;
bcratrights['Bcorr']=1;
bcratrights['Bibliomaniac15']=1;
bcratrights['Brion%20VIBBER']=1;
bcratrights['Cecropia']=1;
bcratrights['Cimon%20Avaro']=1;
bcratrights['Cprompt']=1;
bcratrights['Deskana']=1;
bcratrights['Dweller']=1;
bcratrights['EVula']=1;
bcratrights['Ilyanep']=1;
bcratrights['Infrogmation']=1;
bcratrights['Jwrosenzweig']=1;
bcratrights['Kingturtle']=1;
bcratrights['Linuxbeak']=1;
bcratrights['MBisanz']=1;
bcratrights['Nihonjoe']=1;
bcratrights['Pakaran']=1;
bcratrights['Raul654']=1;
bcratrights['Rsmith4']=1;
bcratrights['Redux']=1;
bcratrights['Rlevse']=1;
bcratrights['Secretlondon']=1;
bcratrights['Stan%20Shebs']=1;
bcratrights['TUF%2DKAT']=1;
bcratrights['Taxman']=1;
bcratrights['The%20Rambling%20Man']=1;
bcratrights['Tim%20Starling']=1;
bcratrights['UninvitedCompany']=1;
bcratrights['Useight']=1;
bcratrights['WJBScribe']=1;
bcratrights['Warofdreams']=1;
bcratrights['X%21']=1;
bcratrights['Xeno']=1;

//Highlighting script. Based on [[User:ais523/highlightmyname.js]].

function highlightbcrats(n,p) //node, parent node
{
  while(n!=null)
  {
    if(n.nodeType==1&&n.tagName.toLowerCase()=="a") //anchor
    {
      if(n.href.indexOf("http://en.wikipedia.org/wiki/User:")!=-1)
      {
        var u=n.href.split("http://en.wikipedia.org/wiki/User:")[1];
        if(bcratrights[u.split("_").join("%20")]==1)
        {
          n.style.color="#66aaff";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_crat";
          else n.className+=" ais523_adminrights_crat";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("http://en.wikipedia.org/wiki/User_talk:")!=-1)
      {
        var u=n.href.split("http://en.wikipedia.org/wiki/User_talk:")[1];
        if(bcratrights[u.split("_").join("%20")]==1)
        {
          n.style.color="#66aaff";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_crat";
          else n.className+=" ais523_adminrights_crat";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("http://en.wikipedia.org/wiki/Special:Contributions:")!=-1)
      {
        var u=n.href.split("http://en.wikipedia.org/wiki/Special:Contributions:")[1];
        if(bcratrights[u.split("_").join("%20")]==1)
        {
          n.style.color="#66aaff";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_crat";
          else n.className+=" ais523_adminrights_crat";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("http://en.wikipedia.org/w/index.php?title=User:")!=-1)
      {
        var u=n.href.split("http://en.wikipedia.org/w/index.php?title=User:")[1];
        if(bcratrights[u.split("_").join("%20")]==1)
        {
          n.style.color="#66aaff";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_crat";
          else n.className+=" ais523_adminrights_crat";
        }
        n=n.nextSibling;
      }
      else if(n.href.indexOf("http://en.wikipedia.org/w/index.php?title=User_talk:")!=-1)
      {
        var u=n.href.split("http://en.wikipedia.org/w/index.php?title=User_talk:")[1];
        if(bcratrights[u.split("_").join("%20")]==1)
        {
          n.style.color="#66aaff";
          if(n.className==null||n.className=="") n.className="ais523_adminrights_crat";
          else n.className+=" ais523_adminrights_crat";
        }
        n=n.nextSibling;
      }
      else
      {
        if(n.firstChild!=null) highlightbcrats(n.firstChild,n);
        n=n.nextSibling;
      }
    }
    else
    {
      if(n.firstChild!=null) highlightbcrats(n.firstChild,n);
      n=n.nextSibling;
    }
  }
}

$(function() {
  if(location.href.indexOf("?ais523")==-1&&location.href.indexOf("&ais523")==-1&&
     location.href.indexOf("?action=edit")==-1&&location.href.indexOf("?action=submit")==-1&&
     location.href.indexOf("&action=edit")==-1&&location.href.indexOf("&action=submit")==-1&&
     wgPageName!="Special:Preferences")
  {
    highlightbcrats(document.getElementById('bodyContent').firstChild,
                    document.getElementById('bodyContent'));
  }
});

//[[Category:Wikipedia scripts]]

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.