Here's a function that can replace the user profile list text:
Code:
function changeToolbar(word, replacement) {
for (var name in word) {
document.getElementById('fa_menulist').innerHTML = document.getElementById('fa_menulist').innerHTML.replace(RegExp(name, 'g'), word[name]);
}
}
$(window).load(function () {
changeToolbar({
'All my Messages': 'Messages',
'All my Topics': 'Topics'
});
});
You can add on to the list by following the syntax:
For just "All My Messages" it would be:
Code:
function changeToolbar(word, replacement) {
for (var name in word) {
document.getElementById('fa_menulist').innerHTML = document.getElementById('fa_menulist').innerHTML.replace(RegExp(name, 'g'), word[name]);
}
}
$(window).load(function () {
changeToolbar({
'All my Messages': 'Messages'
});
});
Notice the use of the comma when specifying multiple strings.