Difference between revisions of "MediaWiki:Vector.js"

From ISLAB/CAISR
(Created page with "Any JavaScript here will be loaded for users using the Vector skin: jQuery(function($){ if ( mw.user.isAnon() ) { $('#ca-viewsource').hide(); //id or class varies wi...")
 
Line 5: Line 5:
 
     document.write("<h1>ANON</h1>");
 
     document.write("<h1>ANON</h1>");
 
  } } );
 
  } } );
 +
 +
    $('#ca-viewsource').hide(); //id or class varies with skin
 +
mw.util.addCSS( 'div.hidden_not_loggedin{display:none!important; }' );
 +
mw.util.addCSS( '#p-tb { display: none!important; }' );
 +
mw.util.addCSS( '#contentSub { display: none!important; }' );
 +
mw.util.addCSS( '#ca-protect{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-watch{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-purge{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-history{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-delete{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-move{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-edit{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-talk{ display:none!important; }' );
 +
mw.util.addCSS( '#ca-nstab-main{ display:none!important; }' );
 +
mw.util.addCSS( '.editsection{ display:none!important; }' );
 +
mw.util.addCSS( 'div#footer{ display:none!important; }' );
 +
mw.util.addCSS( '#p-Internal { display: none!important; }' );
 +
mw.util.addCSS( '#ca-viewsource { display: none!important;}' );
 +
mw.util.addCSS( '#ca-form_edit { display: none!important;}' );
 +
mw.util.addCSS( '#jump-to-nav { display: none!important;}' );
 +
mw.util.addCSS( '#mw-editsection-bracket { display: none!important;}' );
 +
mw.util.addCSS( '.printfooter { display: none!important;}' );
 +
mw.util.addCSS( '.mw-jump { display: none!important;}' );
 +
    $('.mw-jump').hide(); //id or class varies with skin
 +
    $('#ca-viewsource').hide(); //id or class varies with skin
 +
mw.util.addCSS( '.mw-jump { display: none!important;}' );

Revision as of 16:20, 12 March 2014

/* Any JavaScript here will be loaded for users using the Vector skin */

jQuery(function($){ if ( mw.user.isAnon() ) {
    $('#ca-viewsource').hide(); //id or class varies with skin
    document.write("<h1>ANON</h1>");
 } } );

    $('#ca-viewsource').hide(); //id or class varies with skin
mw.util.addCSS( 'div.hidden_not_loggedin{display:none!important; }' );
mw.util.addCSS( '#p-tb { display: none!important; }' );
mw.util.addCSS( '#contentSub { display: none!important; }' );
mw.util.addCSS( '#ca-protect{ display:none!important; }' );
mw.util.addCSS( '#ca-watch{ display:none!important; }' );
mw.util.addCSS( '#ca-purge{ display:none!important; }' );
mw.util.addCSS( '#ca-history{ display:none!important; }' );
mw.util.addCSS( '#ca-delete{ display:none!important; }' );
mw.util.addCSS( '#ca-move{ display:none!important; }' );
mw.util.addCSS( '#ca-edit{ display:none!important; }' );
mw.util.addCSS( '#ca-talk{ display:none!important; }' );
mw.util.addCSS( '#ca-nstab-main{ display:none!important; }' );
mw.util.addCSS( '.editsection{ display:none!important; }' );
mw.util.addCSS( 'div#footer{ display:none!important; }' );
mw.util.addCSS( '#p-Internal { display: none!important; }' );
mw.util.addCSS( '#ca-viewsource { display: none!important;}' );
mw.util.addCSS( '#ca-form_edit { display: none!important;}' );
mw.util.addCSS( '#jump-to-nav { display: none!important;}' );
mw.util.addCSS( '#mw-editsection-bracket { display: none!important;}' );
mw.util.addCSS( '.printfooter { display: none!important;}' );
mw.util.addCSS( '.mw-jump { display: none!important;}' );
    $('.mw-jump').hide(); //id or class varies with skin
    $('#ca-viewsource').hide(); //id or class varies with skin
mw.util.addCSS( '.mw-jump { display: none!important;}' );