So after shooting in the dark for a bit, I finally got this plug-in working.
Note: You have to disable "Award Improvements" in the better battlelog settings.
This code allows you to change the order of the medals and ribbons.
If you want to try out my layout, here is a link to my plug-in:
https://dl.dropbox.com/s/jgrkcfz9q6t48ii/Awards-2.0.js
/**
/**
Award optimization 2.0
@author KillerKooK
@version 1.3
Change log:
1.2 The medal and ribbon lists can now be ordered individually. Removed the typo fix and put it into a separate plug-in.
1.3 Since battlelog changed the order of the medals and ribbons, the indexes need to be reorder.
To use, you must disable "Award Improvements" under the "Minor Improvements" in the better battlelog settings.
This plug-in allows you to change the order of the medals and ribbons.
/** Medal indexes
Assult rifle medal - 0
Carbine medal - 1
Light Machine gun medal - 2
Sniper rifle medal - 3
Shotgun medal - 5
PDW medal - 6
Handgun medal - 4
Melee medal - 7
Resupply medal - 32
Repair medal - 33
Medical medal - 34
Surveillance medal - 35
Transport warfare medal - 19
Armor warfare medal - 20
Air warfare medal - 21
Stationary emplacement medal - 22
Anti vehicle medal - 8
Accuracy medal - 9
Avenger medal - 10
Savior medal - 11
Nemesis medal - 12
Suppression medal - 13
MVP medal - 14
2nd MVP medal - 15
3rd MVP medal - 16
Ace Squad medal - 17
Combat efficiency medal - 18
Rush medal - 25
M-com Attacker medal - 23
M-com Defender medal - 24
Conquest medal - 26
Flag attacker medal - 30
Flag defender medal - 31
Team Deathmatch medal - 27
Squad Rush medal - 28
Squad Deathmatch medal - 29
Tank Superiority medal - 50
Domination medal - 51
Gun master medal - 52
US Marines service medal - 40
RU Army service medal - 41
Assault service medal - 42
Engineer service medal - 43
Support service medal - 44
Recon service medal - 45
Tank service medal - 46
Helicopter service medal - 47
Jet service medal - 48
Stationary service medal - 49
M18 Claymore medal - 38
Mortar medal - 36
Laser Designator medal - 37
Radio Beacon medal - 39
Ribbon indexes
Assult rifle ribbon - 0
Carbine ribbon - 1
Light Machine gun ribbon - 2
Sniper rifle ribbon - 3
Shotgun ribbon - 5
PDW ribbon - 6
Handgun ribbon - 4
Melee ribbon - 7
Resupply ribbon - 41
Repair ribbon - 42
Medical ribbon - 43
Surveillance ribbon - 44
Transport warfare ribbon - 23
Armor warfare ribbon - 24
Air warfare ribbon - 25
Stationary emplacement ribbon - 26
Disable vehicle ribbon - 8
Anti vehicle ribbon - 9
Accuracy ribbon - 10
Avenger ribbon - 11
Savior ribbon - 12
Nemesis ribbon - 13
Suppression ribbon - 14
MVP ribbon - 15
2nd MVP ribbon - 16
3rd MVP ribbon - 17
Ace Squad ribbon - 18
Combat efficiency ribbon - 19
Rush ribbon - 34
Rush winner ribbon - 29
M-com Attacker ribbon - 27
M-com Defender ribbon - 28
Conquest ribbon - 35
Conquest winner ribbon - 30
Flag attacker ribbon - 39
Flag defender ribbon - 40
Team deathmatch ribbon - 36
Team deathmatch winner ribbon - 31
Squad rush ribbon - 37
Squad Rush winner ribbon - 32
Squad deathmatch ribbon - 38
Squad Deathmatch winner ribbon - 33
Tank superiority winner ribbon - 45
Domination winner ribbon - 46
Gun master winner ribbon - 47
Squad spawn ribbon - 21
Squad wipe ribbon - 22
Anti explosives ribbon - 20
*/
var handler = function(){
if(!BBLog.storage("optimizeAwards") && window.location.href.match(/\/awards\//)){
var container = $("#profile-stats-awards-progression").not("[data-optimization]");
if(container.size()){
container.attr("data-optimization", true);
var all = container.find(".profile-stats-awards-progression-body");
all.prepend('');
var allItems = container.find(".profile-stats-unlock-progression-kit-item");
var med = all.eq(0);
var rib = all.eq(1);
//EDIT MEDAL ORDER HERE
var medals = [0, 1, 2, 3, 5, 6, 4, 7, 32, 33, 34, 35, 19, 20, 21, 22, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 25, 23, 24, 26, 30, 31, 27, 28, 29, 50, 51, 52, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 38, 36, 37, 39];
//EDIT RIBBON ORDER HERE
var ribbons = [0, 1, 2, 3, 5, 6, 4, 7, 41, 42, 43, 44, 23, 24, 25, 26, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 34, 29, 27, 28, 35, 30, 39, 40, 36, 31, 37, 32, 38, 33, 45, 46, 47, 21, 22, 20];
//medals that are earned by time have a percent
medPercent = [40, 41, 42, 43, 44, 45, 46, 47, 48, 49];
//medals that arn't earned by ribbons or time
medOther = [36, 37, 38, 39];
// mapping medals to ribbons
var medToRib = { 0 : 0, 1 : 1, 2 : 2, 3 : 3, 4 : 4, 5 : 5, 6 : 6, 7 : 7, 8 : 9,
9 : 10, 10 : 11, 11 : 12, 12 : 13, 13 : 14, 14 : 15, 15 : 16, 16 : 17, 17 : 18,
18 : 19, 19 : 23, 20 : 24, 21 : 25, 22 : 26, 23 : 27, 24 : 28, 25 : 29, 26 : 30,
27 : 31, 28 : 32, 29 : 33, 30 : 39, 31 : 40, 32 : 41, 33 : 42, 34 : 43, 36 : 44,
50 : 45, 51 : 46, 52 ];
var appendElementsRib = [];
for (i = 0; i ")[2]
var neededCounts = parseInt(haveNeed.match(/\d+/g)[1]);
var haveCounts = parseInt(haveNeed.match(/\d+/g)[0]);
var required = neededCounts - haveCounts;
required = isNaN(required) || required == 0 ? neededCounts ]);
if (percNum '+perc+'');
}
//Link medals and ribbons that have matches.
if(medToRib[medIndex] >= 0) {
var ribEl = rib.find(".profile-stats-unlock-progression-kit-item]+")");
// on mouseenter highlight grouped entries
medEl.bind("mouseenter", {"ribEl" : ribEl}, function(ev){
var el = ev.data.ribEl;
allItems.removeClass("bblog-hovered-item");
el.addClass('bblog-hovered-item');
}).bind("mouseleave", function(ev){
allItems.removeClass("bblog-hovered-item");
});
// on mouseenter highlight grouped entries
ribEl.bind("mouseenter", {"medEl" : medEl}, function(ev){
var el = ev.data.medEl;
allItems.removeClass("bblog-hovered-item");
el.addClass('bblog-hovered-item');
}).bind("mouseleave", function(ev){
allItems.removeClass("bblog-hovered-item");
});
}
appendElementsMed.push(medEl);
}
for (i = 0; i ');
}
}
};
// add handler to the domchange list
BBLog.bindDomChange(handler);
// execute the handler once for immediate initialization
handler();