MediaWiki:Gadget-selfHighlight.js

// By Equazcion: http://terraria.gamepedia.com/User:Equazcion

var wgUserName = mw.config.get( 'wgUserName' );

mw.util.addCSS('a.self-highlight { background-color: #D1DCFF !important; }'); $('#bodyContent a[href]').each(function{	var $this = $(this);	if ($this.attr('href') == '/User:' + mw.config.get('wgUserName')){		$this.addClass('self-highlight');	} });