-
Improvement
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
Some background: I made the Enhanced Cover Art Edits (ECAU)Â userscript, which among others, enables adding new cover art via URLs. It's pretty popular. It uses a huge and ugly, but vital workaround to add these images, and for that it needs to access MBS' jQuery.
Unfortunately, it appears that certain userscript add-ons (most notably recent beta versions of Violentmonkey) allow userscripts to overwrite window.$ resulting in ECAU not being able to access MBS' own jQuery, the workaround failing, and the whole userscript being unable to achieve its core functionality.
There's no guaranteed fix on my side, because any other userscript can cause this. So it'd be great if there was some first-party support to programmatically enqueue new cover art uploads on the add-cover-art pages. Most of it is already accessible from window.MB.CoverArt, but to the best of my knowledge, it cannot be used to enqueue new images. Vitally, the object which controls the queue is a local variable. If that object's addFile method could be exported on window.MB.CoverArt, it'd allow me to have the userscript queue the images programmatically instead of simulating user interaction events.
- has related issue
-
MBS-13098 Support seeding Add Cover Art edit_note and make_votable fields
- Closed