User:Gary/highlight my username in history.js

/*	HIGHLIGHT MY USERNAME IN HISTORY Description: Highlights your username in history pages.

$(function {	if (mw.config.get('wgAction') !== 'history') return;	mw.loader.using( ['mediawiki.util'], function { // Added here instead of user's style.css so that it comes with the script. mw.util.addCSS('a.history-highlight { background-color: #D1DCFF; }'); $('.mw-userlink').each(function		{			var $this = $(this);			if ($this.text == mw.config.get('wgUserName'))				$this.addClass('history-highlight');		}); }); });