ਵਰਤੋਂਕਾਰ:Benipal hardarshan/ColourBackground.js

ਵਿਕੀਸਰੋਤ ਤੋਂ

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
//This Script is made by User:Benipal hardarshan
//You can copy it or just put this in your common.js {{{{{{{importscript("User:Benipal_hardarshan/ColourBackground.js")}}}}}}}

jQuery( document ).ready( function() {
	
	(wgAction == "edit" || 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('white', 'silver', '#2f4f4f', '#3198cc', 'red', 'brown');
	}
);