MediaWiki:Wikia.css

/* Any JavaScript here will be loaded for all users on every page load. */ // 20:47, August 4, 2015 (UTC) //  // ================================================================ // Standard edit summaries // Source Editor - Original RuneScape Wiki with slight label change // Visual Editor - Modified by Casualty Wiki from here // with slight label change // ================================================================ // ==================== // Source Editor // ==================== $(function {       if (skin == 'oasis'){            var $label = $('#edit_enhancements_toolbar #wpSummaryLabel');	    if (!$label.size) {	    	    return;	    }        }        if (skin == 'monobook'){	    var $label = $('.editOptions #wpSummaryLabel');	    if (!$label.size) {	    	    return;	    }        }	$combo = $(' ').attr('id', 'stdSummaries').change(function { var val = $(this).val; if (val != '') { $('#wpSummaryEnhanced,#wpSummary').val(val); }	});	 $label.prepend(' ').prepend($combo).prepend('Summaries: ');	$.ajax({ 'dataType': 'text', 'data': { 'title': 'Template:Stdsummaries', 'action': 'raw', 'ctype': 'text/plain' },		'url': wgScript, 'success': function(data) { var lines = data.split("\n"); for (var i in lines) { var val = (lines[i].indexOf('-- ') == 0) ? lines[i].substring(3) : ''; var text = (lines[i].indexOf('-- ') == 0) ? ' ' + lines[i].substring(3) : lines[i]; var disable = (lines[i].indexOf('-- ') == 0 || lines[i].indexOf('(') == 0) ? '' : 'disabled';				var $opt = '' + text + ' ';				$combo.append($opt);			}		}	}); }) // ==================== // Visual Editor // ==================== $(function { var $label = $('.module_content #wpSummaryLabel'); if (!$label.size) { return; }	$combo = $(' ').attr('id', 'stdSummaries').change(function {		var val = $(this).val;		if (val != '') {			$('#wpSummaryEnhanced,#wpSummary').val(val);		}	}); $label.after($combo); $.ajax({		'dataType': 'text',		'data': {			'title': 'Template:Stdsummaries',			'action': 'raw',			 $label.prepend(' ').prepend($combo).prepend('Summaries: ');	$.ajax({ 'dataType': 'text', 'data': { 'title': 'Template:Stdsummaries', 'action': 'raw', 'ctype': 'text/plain' },		'url': wgScript, 'success': function(data) { var lines = data.split("\n"); for (var i in lines) { var val = (lines[i].indexOf('-- ') == 0) ? lines[i].substring(3) : ''; var text = (lines[i].indexOf('-- ') == 0) ? ' ' + lines[i].substring(3) : lines[i]; var disable = (lines[i].indexOf('-- ') == 0 || lines[i].indexOf('(') == 0) ? '' : 'disabled';				var $opt = '' + text + ' ';				$combo.append($opt);			}		}	}); }) // ==================== // Visual Editor // ==================== $(function { var $label = $('.module_content #wpSummaryLabel'); if (!$label.size) { return; }	$combo = $(' ').attr('id', 'stdSummaries').change(function {		var val = $(this).val;		if (val != '') {			$('#wpSummaryEnhanced,#wpSummary').val(val);		}	}); a[href$="/wiki/User:Beds"] { color: #32CD32 !important; font-weight: bold !important; font-family: Arial !important; }	});	a[href$="/wiki/User:Coconut Shavings"] {   color: #FF6347 !important;    font-weight: bold !important;    font-family: Arial !important; }