Skip to content

Instantly share code, notes, and snippets.

View volkankaban's full-sized avatar
:octocat:
I may be slow to respond.

I'm Volkan Kaban volkankaban

:octocat:
I may be slow to respond.
View GitHub Profile
@volkankaban
volkankaban / unregisterServiceWorkers.js
Created December 12, 2023 05:09
JavaScript for unregistering service workers in Chrome, Edge, and Firefox
// 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
@volkankaban
volkankaban / googlePhotos.js
Created January 31, 2024 00:29
Google Photos Manager (Sync, Hash & Remove Duplicates)
// 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';