Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save bonnebulle/aba66d628fb44ec320a60ddc36cd1c57 to your computer and use it in GitHub Desktop.

Select an option

Save bonnebulle/aba66d628fb44ec320a60ddc36cd1c57 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
// Source https://gist.github.com/pdcmoreira/8ab7a2a26abf3d63aa041f535de942f5
// Navidrom -> TopRight menu -> Fichiers manquants...
// -> Navigateur -> Console (dev tools)
// > copy paste this + ENTER
(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="Supprimer"]')
removeButton.click()
await wait(300)
const confirmButton = document.querySelector('button.ra-confirm')
confirmButton.click()
await wait(1500)
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment