samedi 10 avril 2021

Google chrome select All checkbox by Javascript or console

I am on the following google chrome page: chrome://history/?q=a

I have a list of results, I would like to make sure that through the browser console to select all checkboxes.

I've tried these ways, taking a cue from here, but it doesn't seem to work:

[].forEach.call( document.querySelectorAll('input[type="checkbox"]'),function(el){
       el.checked=true;
     }
);
[].forEach.call( document.querySelectorAll('cr-checkbox#checkbox.no-label'),function(el){
       el.checked=true;
     }
);

Can anyone help me out?




Aucun commentaire:

Enregistrer un commentaire