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

94
Vistas
Marque una casilla de verificación en la extensión de Chrome del sitio de terceros

Estoy tratando de hacer una extensión de Google Chrome que marcará automáticamente la tercera casilla de verificación (Hansen Dam) en un sitio web de terceros. Parece que no puedo hacer que funcione.

Aquí está el sitio web: https://cityofla.ezlinksgolf.com/index.html#/preSearch

manifiesto.json

 { "manifest_version": 2, "name": "Tester", "version": "1.0.0", "permissions": ["activeTab"], "content_scripts": [ { "matches": ["<all_urls>"], "all_frames": true, "js": ["Scripts/content.js"] } ] }

contenido.js

 // trying to check the 3rd box directly, method 1 const a=document.querySelectorAll('input[type="checkbox"]'); a[3].checked = true; // i've tried checking all the boxes with a loop, method 2 var arr = []; const allInputs = document.getElementsByTagName("input"); for (let i = 0; i < allInputs.length; i++){ if (allInputs[i].type == 'checkbox') allInputs[i].checked = true; arr.push(i); // make a new array of only checkboxes, to pick 3rd checkbox from this array } // trying another way, method 3 arr[3].checked = true;

¡Cualquier ayuda apreciada!

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