Hello,
We are moving to 25R2 soon and in our sandbox testing, we have a single Javascript customization to simply change the label of “Note” to “Warehouse Notes”. We get no errors when publishing but the change isn’t happening. We assume it’s due to the Modern UI. Can anyone point me in the right direction of what I need to change in order for it to work?

Here is the Script:
document.addEventListener('DOMContentLoaded', function() { const notesElement = document.querySelector('#ctl00_usrCaption_tlbDataView_ul .toolsBtn[data-cmd="NoteShow"] .toolBtnNormal'); if (notesElement) { notesElement.lastChild.textContent = 'Warehouse Notes'; } });