MechanicalFish
Re:One Million Checkboxes
on Wednesday June 26, 2024 @03:20PM (#40803526)
// ==UserScript==
// @name Check All Unchecked Checkboxes
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Check all unchecked checkboxes on the page
// @author MechanicalFish
// @match https://onemillioncheckboxes.com/*
// @grant none
// ==/UserScript==
(function() { 'use strict';
function checkAllCheckboxes() {
var checkboxes = document.querySelectorAll('input[type="checkbox"]');
checkboxes.forEach(function(checkbox) {
if (!checkbox.checked) {
checkbox.checked = true;
}
});
}
const observer = new MutationObserver((mutations) => {
checkAllCheckboxes();
});
observer.observe(document.body, { childList: true, subtree: true });
checkAllCheckboxes();
})();
Re:Ask HN: Looking for a great tool to archive websites
on Friday April 14, 2023 @03:45PM (#35573816)