const favicon = document.querySelectorAll('[rel="apple-touch-icon"], [rel="icon"]'); for (let i = 1; i < str.length; i++){ favicon[i].remove()