User:NicoV/vector.js

// CommonsHelper User:Krimpet/CH2.js importScript('User:Krimpet/CH2.js');

// TemplateDataEditor importScript('User:NicoV/TemplateDataEditor.js');

// Coloration des contributions function couleurContributions($content) { var all_titles = {}; $content.find('ul li').each(function{		var $item = $(this), title = $item.find('.mw-contributions-title').attr('title');		if ( $item.find('.mw-uctop').length > 0 ) {			all_titles[title] = true;			$item.css('background-color', '#FFCC66');		} else if ( all_titles[title] ) {			$item.css('background-color', '#FF9966');		}	}) }

if ( mw.config.get('wgCanonicalSpecialPageName') == 'Contributions' ) { mw.hook('wikipage.content').add(couleurContributions); }