Skip to content

Instantly share code, notes, and snippets.

@pdcmoreira
Created May 6, 2025 14:36
Show Gist options
  • Select an option

  • Save pdcmoreira/8ab7a2a26abf3d63aa041f535de942f5 to your computer and use it in GitHub Desktop.

Select an option

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)
}
})()
@fatreg
Copy link

fatreg commented Dec 11, 2025

Bravo! worked like lighning! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment