Cambiar todo una etiqueta href javascript
const children = [...parent.getElementsByTagName('a')];
children.forEach((child) => { /* TODO */ });
emanuallan
const children = [...parent.getElementsByTagName('a')];
children.forEach((child) => { /* TODO */ });