Skip to content

Instantly share code, notes, and snippets.

@pdcmoreira
Created May 6, 2025 14:36
Show Gist options
  • Save pdcmoreira/8ab7a2a26abf3d63aa041f535de942f5 to your computer and use it in GitHub Desktop.
Save pdcmoreira/8ab7a2a26abf3d63aa041f535de942f5 to your computer and use it in GitHub Desktop.
Batch remove all missing files from all pages in Navidrome's "Missing files" list - copy-paste into the console and run
(async () => {
const wait = (time) => new Promise(resolve => setTimeout(resolve, time))
const countElements = () => document.querySelectorAll('.MuiTableRow-root').length
while(countElements()) {
const selectAllInput = document.querySelector('.MuiIconButton-label input')
selectAllInput.click()
await wait(300)
const removeButton = document.querySelector('button[aria-label="Remove"]')
removeButton.click()
await wait(300)
const confirmButton = document.querySelector('button.ra-confirm')
confirmButton.click()
await wait(1000)
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment