This file contains hidden or 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
| const maxCount = 500; | |
| const counterSelector = '.rtExYb'; | |
| const checkboxSelector = '.ckGgle[aria-checked=false]'; | |
| const photoDivSelector = ".yDSiEe.uGCjIb.zcLWac.eejsDc.TWmIyd"; | |
| const deleteButtonSelector = 'button[aria-label="Delete"]'; | |
| const confirmationButtonSelector = '#yDmH0d > div.VfPpkd-Sx9Kwc.cC1eCc.UDxLd.PzCPDd.V639qd.bvQPzd.oEOLpc.A9Uzve.VfPpkd-Sx9Kwc-OWXEXe-FNFY6c > div.VfPpkd-wzTsW.O4g5Md.iWO5td > div > div.VfPpkd-cnG4Wd.m5OsGf > div > div.VfPpkd-T0kwCb.IdSMxc > button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-k8QpJ.nCP5yc.AjY5Oe.LQeN7.kDryjd'; | |
| async function deleteGooglePhotos() { | |
| // Retrieves the current count of selected photos | |
| const getCount = () => { |
This file contains hidden or 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
| import requests | |
| import os | |
| from collections import defaultdict | |
| # I have photos in subfolders like : | |
| # /mnt/media/Photos/2023-08 Holidays | |
| # /mnt/media/Photos/2023-06 Birthday | |
| # /mnt/media/Photos/2022-12 Christmas | |
| # This script will create 3 albums | |
| # 2023-08 Holidays, 2023-06 Birthday, 2022-12 Christmas |
This file contains hidden or 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
| /** | |
| DISCLAIMER: DO NOT COPY & PASTE RANDOM JAVASCRIPT SCRIPTS INTO YOUR BROWSER'S CONSOLE WITHOUT UNDERSTANDING WHAT THEY ARE DOING. THEY CAN STEAL YOUR PERSONAL INFORMATION!!! | |
| What this script does? | |
| Based on an external library in immich, it goes through all the folder of it, and creates albums for each one | |
| How it works? |