Hello i want to code an scirpt that downloads / opens an link thats in an class as an href (you can see it on the picture i sent)
i dont know how to do it because im not an experienced coder
i already tried this to pieces of code but without success
document.getElementsByClassName("mycode_color")[0].click(`href`);
document.getElementByClassName('exito_thx message').src = url;
i want that the scirpt opens this href in an new tab
does someone know if its possible and how its done?
or does someone know is its possible to code it to open every link that has "attachement.php" in it?
edit: it's much complicated than i thought it would be
every link is in his own name & id