User:Xession/vector.js

// User:Zocky/PicturePopupsVector.js importScript('User:Zocky/PicturePopupsVector.js'); window.picturePopupsWidth = 1024; window.picturePopupsHeight = 768;

/*	MARK UNVIEWED WATCHLIST ITEMS Description: On the Watchlist, marks unviewed diffs by bolding them. Only tested with Enhanced Recent Changes enabled. Link: User:Gary King/mark unviewed watchlist items.js $(function {	if (wgPageName != 'Special:Watchlist')		return;	appendCSS('a.watchlist-diff { font-weight: bold; }');	appendCSS('a.watchlist-diff:visited { font-weight: normal; }');	var allH4 = document.getElementById('bodyContent').getElementsByTagName('h4');	// loop through each day	for (i = 0; i < allH4.length; i++)	{		var watchedItems = allH4[i].nextSibling.getElementsByTagName('table');		// loop through each page		for (j = 0; j < watchedItems.length; j++)		{			var diffLink = watchedItems[j].firstChild.firstChild.childNodes[1].childNodes[3];			// check that this is really a diff link by determing the link's text			if (diffLink && diffLink.firstChild && (diffLink.firstChild.nodeValue == 'diff' || diffLink.firstChild.nodeValue.indexOf('changes') != -1))				diffLink.className = 'watchlist-diff';		}	} });