मिडियाविकी:Gadget-ContrastReducer.js

नोंद: साठवून ठेवल्यानंतर बदल पहाण्यासाठी कदाचित तुमच्या ब्राऊजरच्या कॅचेला बायपास करावे लागेल.

  • फ़ायरफ़ॉक्स / सफ़ारी: धरुन ठेवा Shift टिचकी मारताना Reload, किंवा हे दाबताना Ctrl-F5 किंवा Ctrl-R (⌘-R मॅकवर)
  • गुगल क्रोम: दाबा Ctrl-Shift-R (⌘-Shift-R मॅकसाठी)
  • ओपेरा: कडे जा Menu → Settings (ओपेरा → पसंतीक्रम on a Mac) आणि मग गोपनियता आणि सुरक्षा → ब्राउजिंग डाटा काढून टाका → कॅचे छायाचित्रे आणि धारिणी.
// Script to shade the background and edit boxes to lower contrast and 
// avoid eyestrain
//
// Complain to User:Inductiveload

/* global jQuery, mw */

jQuery( document ).ready( function() {
	
	var currentAction = mw.config.get('wgAction');
	
	if (currentAction == "edit" || currentAction == "submit"){
	
		var colourEditInterfaceBackground = function( pageBG, editboxBG, fontColour, linkColour, newLinkColour, extLinkColour){ 
		
			style = $('<style type="text/css" />').appendTo('head');
			
			style.append(
				'#content		{background-color:'+ pageBG +' !important;}\
				#content		{color:'+ fontColour +' !important;}\
				a				{color:'+ linkColour +' !important;}\
				.new			{color:'+ newLinkColour +' !important;}\
				.extiw			{color:'+ extLinkColour +' !important;}\
				textarea, input	{background-color:'+editboxBG +' !important;}');
		};
		
		colourEditInterfaceBackground('#DDD', '#DDD', '#222', '#22F', '#BA0000', '#33F');
	}
});

//alternative colours
//colourEditInterfaceBackground('#228', '#228', '#FDD', '#DFD', '#BFB');