A new MusicBrainz user script was released

Another small script with a single purpose. If you press the Escape key it will deselect checkboxes, by default only the ones used for merging in lists. It should be easy enough to extend with CSS selectors to match other checkboxes if you like.

It came to be before it was possible to open merges in a new tab with an extra button (and as I have learned later it seems CTRL+Click doesn’t work in Firefox for buttons)

4 Likes

Thank you Chaban. Edit notes with “My mistake” are history now

I’ve taken a liking to the scripts made by @RustyNova but unfortunately the ones for Beatport were also broken and seemed no longer maintained so tried fixing them. Additionally I combined them so you don’t need two scripts. One script to rule them all.

The code has been heavily refactored and optimized with the help of “AI”. API calls to MusicBrainz were optimized to allow querying up to 100 URLs at once and sending a proper user agent. Rate limits should be history.

Not really. It’s just that I took a break from metadata inserts, and beatport was mostly for me to insert whole labels (Only did Subsidia), so I didn’t see it break.
But thanks anyways. Working with userscripts is pretty infuriating to me…

2 Likes

5 posts were split to a new topic: Overcoming API rate limiting

Can you please move this off-topic discussion somewhere else? Thank you :blush:
This is supposed to be purely an announcement thread. (I receive an email for every post in here because I want to stay informed on new userscripts, not to follow random discussions.)

4 Likes

I’ve been looking for a way to perform clicks in multiple tabs for a long time until @yomo12 showed up and demonstrated the Broadcast Channel API :star_struck:

Inspired by this I went and made a more general purpose script. For now it supports submitting edits on MB pages that end with “/edit” or “add-cover-art” and added support for MagicISRC.
However I recommend using this on the beta version only for the time being since it has better rate limit handling

You can use the multi tab submission feature either from your userscript manager’s context menu or bookmarklets:

MusicBrainz: Submit Edit (All Tabs)
javascript:(function(){ new BroadcastChannel('mb_edit_channel').postMessage('submit-edit'); })();

MagicISRC: Submit ISRCs (All Tabs)
javascript:(function(){ new BroadcastChannel('magicisrc_submit_channel').postMessage('submit-isrcs'); })();

Don’t forget to also install the auto login script for ISRC importers whose security I’ve since tightened

2 Likes

Now we need to figure out how to close all submitted tabs :smile:

cc @dvirtz

3 Likes

You can register another broadcast message and call window.close() I guess

1 Like

I’ve got you covered. Automatic tab closing is now implemented. However this won’t work on MagicISRC beta.

4 Likes

Thanks!

Added this function into my Open All Recordings Script.

2 Likes

@chaban while I have you here, I think you missed my reply on this edit note. Can you post the fix you made for my script Wikipedia to Wikidata?

Thank you

1 Like