మీడియావికీ:Gadget-ContrastReducer.js
గమనిక: భద్రపరచిన తర్వాత, మార్పులను చూడాలంటే మీ విహారిణి కోశాన్ని తీసేయాల్సిరావచ్చు.
- ఫైర్ఫాక్స్ / సఫారి: Shift మీటని నొక్కిపట్టి Reloadని నొక్కండి లేదా Ctrl-F5 గానీ Ctrl-R (మాకింటోషులో ⌘-Shift-R) గానీ నొక్కండి
- గూగుల్ క్రోమ్: Ctrl-Shift-R (మాక్ లో ⌘-Shift-R) నొక్కండి
- ఇంటర్నెట్ ఎక్ప్లోరర్/ఎడ్జి: Ctrl ను నొక్కిపట్టి Refresh నొక్కండి లేదా Ctrl-F5 నొక్కండి.
- ఒపేరా:* Ctrl-F5 నొక్కండి.
// 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');