musicbrainz-userscripts icon indicating copy to clipboard operation
musicbrainz-userscripts copied to clipboard

Fixing Deezer Script

Open matteron opened this issue 2 years ago • 4 comments

Simple change to update querying for the toolbar. Seems like they've obfuscated their class names or something, but left these data-testid attributes that we can use to hook into.

Fixes #396

matteron avatar Apr 13 '22 02:04 matteron

Deezer's HTML code with its scrambled class names and IDs has really become a PITA and makes custom scripts for it unnecessarily hard to maintain. While this solution seems to be working right now, it will likely break again soon. For me (latest Firefox/Violentmonkey, haven't been using the script) the button appears only in one out of a few tries and the layout is broken, but that's most likely another issue.

I don't think that this userscript is maintained by @atj anymore since most MusicBrainz editors are now using a-tisket to import Deezer releases (of which @atj maintains a mirror). Maybe we should consider deprecating this userscript with a last update that informs all users of a-tisket's existence?

kellnerd avatar May 06 '22 14:05 kellnerd

Whilst I must admit that no longer use the script, I think that it still has value and there are clearly people still using it.

Updating the class names doesn't seem to happen that often, so it's not a massive maintenance burden, and the fix is usually pretty trivial. Going forward I'll try and remember to submit a PR for this userscript whenever I have to update my a-tisket userscript.

atj avatar May 09 '22 09:05 atj

@matteron : could you update the version of the script? then I'll approve and merge this PR

murdos avatar Sep 05 '22 06:09 murdos

@matteron : could you update the version of the script? then I'll approve and merge this PR

No reply for the last week. @murdos maybe you could update the version and push it to his fork (it's very easy).

arsinclair avatar Sep 12 '22 17:09 arsinclair

Sorry about the long wait, but I've merged the main branch back into my repo. Should be all good now.

matteron avatar Oct 08 '22 03:10 matteron

Next steps?

arsinclair avatar Dec 19 '22 16:12 arsinclair

You could just copy the script into the editor if you need it, otherwise, we're just waiting for the pr to get merged.

matteron avatar Dec 23 '22 17:12 matteron