js use rel to select elements code example
Example: javascript get element by rel attribute
document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";
document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";