Discussions » Demandes de création de scripts

Automatic checkbox unchecker for certain sites [request]

§
Posté le: 12/08/2022

I've found some chrome "unchecker" plugins, but you need to activate them manually. The idea idea is say you go for online shopping and you don't want sites to save your credit card data. But sometimes you might forget to uncheck the annoying tickbox.
The main idea is it automatically unchecks everything on a certain page soon as you open it. And, perhaps, it should be unchecking every time interval if payment is happening on a same page but within a dedicated window.

§
Posté le: 12/08/2022
Édité le: 12/08/2022

This does that
document.querySelectorAll("input[type='checkbox']").forEach(el => el.checked = false);

But some check boxes can be made of different html elements, so it might not work for all checkboxes on the page.

Poster une réponse

Connectez-vous pour poster une réponse.

长期地址
遇到问题?请前往 GitHub 提 Issues。