This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define the checkbox class | |
var checkboxClass = '.ckGgle'; | |
// Get all elements with the specified checkbox class | |
var checkboxes = document.querySelectorAll(checkboxClass); | |
// Function to check the checkbox if it's currently unchecked | |
function checkIfUnchecked(checkbox) { | |
var isChecked = checkbox.getAttribute('aria-checked') === 'true'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Function to unregister all installed service workers in Chrome, Edge, and Firefox | |
function unregisterServiceWorkers() { | |
// Select all elements with the class 'unregister' | |
const unregisterButtons = document.querySelectorAll('.unregister'); | |
// Simulate a click on each button to unregister service workers | |
unregisterButtons.forEach(button => button.click()); | |
} | |
// Call the function to unregister service workers |