மீடியாவிக்கி:Gadget-ContrastReducer.js

விக்கிமூலம் இலிருந்து

குறிப்பு - சேமித்த பின்னர், நீங்கள் செய்த மாற்றங்களைக் காண்பதற்கு உங்கள் உலவியின் இடைமாற்று அகற்றப்பட வேண்டும்.

  • மொஸில்லா பயர்பாக்ஸ் / சபாரி: Shift+Reload, அல்லது Ctrl-F5 அல்லது Ctrl-R (⌘-R Mac ல்)
  • கூகிள் குரோம் Ctrl-Shift-R அழுத்தவும். (⌘-Shift-R Mac ல்) ;
  • இண்டர்நெட் எக்ஸ்ப்ளோரர்: Ctrl-Refresh அல்லது Ctrl-F5 ஐ அழுத்தவும்.
  • ஒபேரா: Tools → Preferences இல் இடைமாற்றை அகற்றவும்;
//importScript( '//en.wikisource.org/wiki/MediaWiki:Gadget-ContrastReducer.js' );
// Script to shade the background and edit boxes to lower contrast and 
// avoid eyestrain
//
// Complain to User:Inductiveload

jQuery( document ).ready( function() {
	
	if (mw.config.get('wgAction') == "edit" || mw.config.get('wgAction')=="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');
"https://ta.wikisource.org/w/index.php?title=மீடியாவிக்கி:Gadget-ContrastReducer.js&oldid=1254704" இலிருந்து மீள்விக்கப்பட்டது