মিডিয়াৱিকি:Gadget-ContrastReducer.js
টোকা: প্ৰকাশ কৰাৰ পাছত পৰিৱৰ্তনসমূহ চাবৰ বাবে আপোনাৰ ব্ৰাউজাৰত কেশ্ব অগ্ৰাহ্য কৰিবলগীয়া হ'ব পাৰে।
- ফায়াৰফক্স / চাফাৰি: Shift ধৰি ৰাখি Reload ক্লিক কৰক, বা Ctrl-F5 আৰু Ctrl-R ৰ ভিতৰত যিকোনো এটা ক্লিক কৰক (মেকত ⌘-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');