Created
November 23, 2019 22:56
-
-
Save jhqv/3a4e21f4597035089106ab1016d36b58 to your computer and use it in GitHub Desktop.
Javascript bookmarklet for deleting duplicate scrobbles in Last.fm (often caused when listening to Spotify on Sonos speakers)
This file contains 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
javascript:var elements=Array.from(document.querySelectorAll('.chartlist-row'));elements.map(function(a){var b=a.querySelector('.chartlist-name');return b&&b.textContent.replace(/\s+/g,' ').trim()}).forEach(function(a,b,c){if(a===c[b+1]||a===c[b+2]){var d=elements[b].querySelector('[data-ajax-form-sets-state="deleted"]');d&&d.click()}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created by Discord user ciN#0014, not myself.