It's perfectly fine to have multiple of the same code, in case a certain one isn't working for whatever reason (maybe JS was updated and only one of the two codes works)
Just so long as they were both independently written (You didn't steal the base or whole code from someone else) it's fine
Oh ok.. As you can see, this isn't really similar to the other code:
<script>
//Change Info Center Text
newtext = "NEW_TEXT"
var a = document.getElementsByTagName('div')
for(i=0;i<a.length;i++){
if(a[i].className == "catbg" && a[i].innerHTML.match(/Info Center/i)){
a[i].innerHTML = a[i].innerHTML.replace("Info Center",newtext);
}}
</script>