User:Offnfopt/custom.js

// Check if the main article tab is selected /* if($('#ca-nstab-main').hasClass('selected')){

makelinksblack(true);

$('#firstHeading').append(' ( Links to other articles are visible, to hide them press [Scroll Lock] ) ');

$(window).keypress(function(event){   switch (event.keyCode) {      case 145: //Scroll Lock        //alert('scroll locked pressed');

if($('#link-notice').css('display') == 'none'){ makelinksblack(false); }else{ makelinksblack(true); }       break; } });

}

function makelinksblack(action){ if(action){ $('#bodyContent a').addClass('black-link'); $('#toc a').removeClass('black-link'); $('#bodyContent a.external').addClass('x-external').removeClass('external'); $('#link-notice').hide; }else{ $('#bodyContent a.black-link').removeClass('black-link'); $('#bodyContent a.x-external').addClass('external').removeClass('x-external'); $('#link-notice').show; } }