JavaScript Get Element by Rel Attribut

document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";
Modern Mouse