Skip to content

Instantly share code, notes, and snippets.

@FusRoDah061
Created August 25, 2020 19:52
Show Gist options
  • Save FusRoDah061/c1c9c5ce19f4b5b9115e7df84fac7b6d to your computer and use it in GitHub Desktop.
Save FusRoDah061/c1c9c5ce19f4b5b9115e7df84fac7b6d to your computer and use it in GitHub Desktop.
Abrir vários links de uma vez em guias do navegador.
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