Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

133
Vistas
Firefox - Automate screenshots from the browser console with JavaScript

As described in this post Firefox allows you to take a screenshot from the console with the command: :screenshot.

I would like to automate this (resize the window and take a screenshot each time) with JavaScript to show off a responsive website.

This is my attempt:

setTimeout(() => {

   eval(':screenshot');

}, 500);

When i execute it from the console it gives me the following error:

Uncaught SyntaxError: expected expression, got ':'

I feel that this is expected. However, I would like to find a way to execute these browser specific commands with JavaScript. Is that possible? Solutions for any other browser are also welcome. Thanks in advance!

Edit: This question is similar, but I am not trying to create an extension and there is no user. I want to run the script from the console myself. Just added it to make sure my question does not get flagged as a duplicate.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda