In this video, we will learn with the help of below script, how can we select all the checkboxes on a salesforce profile page in a single shot:-
var allCheckboxesTags = document.getElementsByTagName("input");
var allCheckboxes = Array.from(allCheckboxesTags);
allCheckboxes.forEach(function(eachCheckbox){
if (eachCheckbox.type === 'checkbox')
eachCheckbox.checked = true;
});