1jQuery(".navbar bdi a").each(function () {
2    //RC2013-10-28 "Binky" places discussion link in <bdi>.
3    //The default Bootstrap CSS therefore won't color the "Discussion" link,
4    //since it isn't a direct child of an <li>. So, remove it from the <bdi>
5    //and put it in the <li>.
6    var destination = $(this).parent().parent();
7    var target = jQuery(this).detach();
8
9    jQuery(target).appendTo(destination);
10});
11