Stats Quick Links Ordering - Better Battlelog Forums #1957

Sitemap
Topicstarter
I didn't see anyone who had done this and it annoyed me so I figured I'd make something to fix it for myself. I decided that if it helps anyone they can use it as well.

This will make the Awards stat button fit in the top soldier area and will re-order the links to match the ordering in your stats.

var reorderIcons = false;
var handler = function() {
if (reorderIcons) return;

$("ul.base-header-soldier-nav > li > a").css("padding", "0px 8px");
var order = [];
var ul = $('ul.base-header-soldier-nav');
var els = $('ul.base-header-soldier-nav > li');
var last = 0;
$.each(els, function() {
switch ($(this).attr('data-page')) {
case 'stats':
current = 0;
break;
case 'weapons':
current = 1;
break;
case 'vehicles':
current = 2;
break;
case 'awards':
current = 3;
break;
case 'assignments':
current = 4;
break;
case 'dogtags':
current = 5;
break;
case 'loadout':
current = 6;
break;
case 'unlocks']);
});

if (order.length b[0] ? 1 ]).is('li')) {
ul.append(el[1]);
}
});
reorderIcons = true;
};
BBLog.bindDomChange(handler);
handler();

var handler = function() {
if (window.location.href.match(/\/loadout\//) && !$('#to-top').is('button')) {
$('TOP').appendTo($('div.profile-stats-loadout-header-actions'));
$('#to-top').css({'margin':'0px 0px 0px 10px','float':'right'}).click(function(){ $('html, body').animate({ scrollTop: 0 }, 0); });
}
};
BBLog.bindDomChange(handler);
handler();
Is
http://getbblog.com/viewtopic.php?f=3&t=597
what you are talking about?
Thank you very much!

If someone is interested:
https://dl.dropbox.com/s/640nc6o21mzg45g/quicklinkssort.js


EDIT: Link fixed
ezek1el3000 wrote:
Thank you very much!

If someone is interested:
https://dl-web.dropbox.com/get/betterbattlelog/quicklinkssort.js?w=7043d858


The link is broken.

Here is my link:
http://labs.localhostr.de/bblog/o/quicklinkssort.js