User:M~enwiki/faderesolved.js

/*

To use:

importScript('User:M/jquery.js'); importScript('User:M/faderesolved.js');



// =============== FADE RESOLVED ISSUES =============== $(window).load( fadeResolved ); function fadeResolved { $('.resolved') // match this one, find headings *at the same level*... .map(function{ return $($(this).prevAll('h2:first').get(0)).prevAll('p:first').get(0); }) .each(function{ 		$("#toc a[href='#"+ $(this).children("a").attr("name")+"']").closest("li.toclevel-1").find("a")		.css("color","#ccc"); // ...and then apply this css to them	}); }