Created
August 25, 2020 19:52
-
-
Save FusRoDah061/c1c9c5ce19f4b5b9115e7df84fac7b6d to your computer and use it in GitHub Desktop.
Abrir vários links de uma vez em guias do navegador.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let links = [ | |
/*Inserir os links aqui como strings*/ | |
] | |
let as = []; | |
for (let link of links) { | |
let a = document.createElement('A'); | |
a.href = link; | |
a.target = "_blank"; | |
document.body.appendChild(a); | |
as.push(a); | |
} | |
for(let a of as) { | |
setTimeout(() => { | |
a.click() | |
}, 100); | |
} | |
/*Rodar no console do DevTools*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment