Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Javascript Browser Snippet open multiple websites

I want to write a little helper with a Javascript Browser Snippet that opens multiple urls in my local environment. In Chrome, open DevTools => Sources => Snippets and create a new Snippet. Here I tried the following:

const skins = ["skin1", "skin2", "skin3"]
const openAllSkins = () => {
skins.map(skin => window.open(`http://${skin}.loc.mylocalenv.com:7000`, `_blank`)
}
openAllSkins()

When I run the snippet (right click the snippet => Run), it only opens the first skin. Why doesn't it work for all the other skins? When debugging, I can proof that the mapping runs through all skins, but somehow only the first one will be opened. 🤔

Any hints much appreciated.

Screenshot of how to write and run this snippet in Chrome DevTools

almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Allow pop-ups from your website for all the windows to open. This will work. Thanks.

enter image description here

almost 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!