Измените весь тег href javaScript
const children = [...parent.getElementsByTagName('a')];
children.forEach((child) => { /* TODO */ });
emanuallan
const children = [...parent.getElementsByTagName('a')];
children.forEach((child) => { /* TODO */ });