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

294
Vistas
Imacros for Firefox - Is it possible to use match in javascript but read from a datasource instead of declaring directly in the macro?
SET !VAR2 EVAL("var s=\"{{!EXTRACT}}\"; if(s.match(\"One|Two|Three|Four|Five\")){url=\"imacros://run/?m=#Found.iim\";} else url=\"imacros://run/?m=#Continue.iim\"; url;")

I have a fair bit of knowledge in imacros but am still learning JS. I have been using the above JS code on one line within a macro for match conditions. Can anyone tell me if its possible to use a datasource to hold all possible values for the match query? Rather than piping the possibilities...? The datasource would be a .txt file and would have hundreds if not thousands that it would need to check the extract against for a match

I also need to figure out how to ignore case on the datasource match and to make sure the match is the exact word only.

Thanks in advance

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