# COLLECTION HIGHLIGHTER :: Highlight owned stuff (releases, recordings, …)

**URL:** <https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889>\
**Category:** MusicBrainz\
**Tags:** userscripts, release, collections, recording, release-group, works, artist\
**Created:** [November 19, 2021, 12:23am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889 "2021-11-19T00:23:45Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [November 19, 2021, 12:23am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/1 "2021-11-19T00:23:45Z")

</div>

Continuing the discussion from [Is it possible to get a discography completion stat/missing tracks?](https://community.metabrainz.org/t/is-it-possible-to-get-a-discography-completion-stat-missing-tracks/430472):

The main reason I use MusicBrainz is to keep track of my collection.

When I am in a flea market, second hand shop, CD shop, I want to know if that compilation or single will bring me recordings I don’t already own in this artist albums or if I already have any edition of that album, etc.

There used to be such a feature in old version of MB but it was very limited as a feature, only the equivalent of the release groups were managed.

I wish this collection all item highlighting can become part of MBS one day:

> <https://tickets.metabrainz.org/browse/MBS-3491>

> <https://tickets.metabrainz.org/browse/MOBILE-29>

Until then, I have to use the following **Android** funny stuff:

- [ZXing barcode scanner](https://play.google.com/store/apps/details?id=com.google.zxing.client.android) with a specific [custom search URL](https://community.metabrainz.org/t/how-do-i-search-by-barcode-i-tried-two-methods-but-both-found-nothing/515611/6): `https://musicbrainz.org/search?type=release&method=advanced&query=barcode%3A%s `
- [Kiwi Browser](https://play.google.com/store/apps/details?id=com.kiwibrowser.browser) ~~or old [Firefox 68.11.0](https://archive.mozilla.org/pub/mobile/releases/68.11.0/)~~
- **Violentmonkey** [extension for Kiwi](https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag) ~~or [add-on for Firefox](https://addons.mozilla.org/firefox/addon/violentmonkey/)~~
- [mb. REDIRECT WHEN UNIQUE RESULT](https://github.com/jesus2099/konami-command/blob/master/mb_REDIRECT-WHEN-UNIQUE-RESULT.user.js)
- mb. COLLECTION HIGHLIGHTER, [just below](#mb-collection-highlighter-1)

# mb. COLLECTION HIGHLIGHTER

This is a [UserScript](https://wiki.musicbrainz.org/Guides/Userscripts) that highlights all your **release** collection elements (releases themselves, but also their recordings, works, artists, groups, …) everywhere, in every pages of MusicBtainz.

Remember that you can even [use this on smartphone](https://community.metabrainz.org/t/user-scripts-on-mobile/134406).

- [Source code](https://github.com/jesus2099/konami-command/blob/master/mb_COLLECTION-HIGHLIGHTER.user.js) ← click the Raw button, there, to install
- [Very old _HOW TO_ on that obsolete version page](https://web.archive.org/web/20140327054755/userscripts.org/scripts/show/126380) ← **don’t download/install from there!**
- [Known issues](https://github.com/jesus2099/konami-command/labels/mb_COLLECTION-HIGHLIGHTER)

But for now, until we can have some visual feedback of our collection, I used my userscript that tells me which release group, release, recording, artist are or are not in my collection(s):

 ![image](https://community.metabrainz.org/uploads/default/original/3X/8/e/8e3deafb1244e632c9c298d7e6efc3972804b1fa.jpeg)

Here I can see the albums I have, they have that purple highlight.

 ![Screenshot_2021-06-09-08-04-29-991_org.mozilla.firefox](https://community.metabrainz.org/uploads/default/original/3X/9/9/99d5e69b589b8fd09c5c98bc8588095d67373b66.jpeg)

Here I can see that in that other edition, there is a recording that I don’t have in my edition.

If I have already listened to and [rated these missing tracks](https://community.metabrainz.org/t/the-future-of-ratings/604271/49), I can also know if I really would like to buy this new edition, just for the bonus tracks.

I can also prepare an artist wanted albums by going to the artist works tab, click the few works I don’t already have and by browsing through its recordings, see what release I am missing.  
The possibilities are wide because this script will highlight my stuff in every conceivable page.

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [January 11, 2022, 2:01am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/2 "2022-01-11T02:01:33Z")

</div>

I am working on a huge new version.

The new stuff, for the moment is that

- the collection loader is [at least 7 times faster](https://github.com/jesus2099/konami-command/issues/174#issuecomment-1008780979) (also tested on Android 9 Kiwi Browser, super fast, no problems)
- all kinds of huge releases can be loaded (even those with dozens of mediums and thousands of recordings and works, there is no limit any more)
- the included release groups will also be highlighten, for instance, if you have [an album anthology](https://musicbrainz.org/release-group/98e078fe-37d9-43f7-8bb4-96526727c4e0), all its included album release groups will be highlighten, same with [a single anthology](https://musicbrainz.org/release-group/43fad23e-2ba8-47fc-bf48-f78911051572) of [anything else](https://musicbrainz.org/release-group/a584ad5d-3f35-45a4-b4c9-ce9302bd2f28) using this relationship
- small interface (GUI) enhancements

All above features are completely implemented.

**More are coming.** In particular, a rewrite of a more stable sustainable dynamic loader, to fix recent regressions due to MBS enhancements (release pagination). I plan to do that by using what I just did for the initial collection loader, based on stable, sustainable, maintainable web service code.

@Cheezmo and @kellnerd already have it, but you can install the super cool beta version if you want, before it is complete and released.  
There is a link over there:

> <https://github.com/jesus2099/konami-command/pull/659>
>
> This ongoing big update will convert the COLLECTION HIGHLIGHTER to full web serv…ice mode.
> 
> \- No more web page parsing, that is subject to fail with any MBS update.
> \- Quicker collection loading.
> \- Allows further enhancements, more easily and more sustainable
> 
> List of changes or features:
> 
> \- #64
> \- #133
> \- #174
> \- #310
> \- #612
> \- \[X\] Handle “Escape” key press to close modal https://github.com/jesus2099/konami-command/pull/659/commits/37bebcdd589e1ea162b45d881a0ac22b3fc2ffcf
> \- And more unplanned features, cosmetics and optimisations…

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [January 23, 2022, 10:59pm UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/3 "2022-01-23T22:59:09Z")

</div>

It’s ready and released now.  
I didn’t have time to convert the dynamic Remove feature (_OFF_ and _Remove from collection_ buttons) to web service mode but it still works for most cases and also it is the less used feature, I guess.

I will [convert my new entity loader to a library](https://github.com/jesus2099/konami-command/issues/189), with [a small update](https://community.metabrainz.org/t/how-to-get-a-huge-release-from-api-including-area-and-place/568824/22), and then I will be able to [use it in MASS MERGE RECORDINGS](https://github.com/jesus2099/konami-command/issues/607) as well.

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [January 27, 2022, 10:03am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/4 "2022-01-27T10:03:37Z")

</div>

@bricas @Cheezmo @kellnerd @Lotheric @loujin @Toad_King

I browsed the script bug tickets to try to guess who is using it.  
But please other users of this script, join the 2 polls! 🙂

There is [a regression around labels](https://github.com/jesus2099/konami-command/issues/665), reported by Toad King ( **now fixed** ).

Personally, I don’t use labels.  
I would like to **drop support for labels highlighting**.  
What about you?

_Poll ([view on site](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/4))_

And also, settings are not be required any more IMO because now the collection loading is very very fast, even when all options on (contrary to before, now there is no loading time difference, whatever the settings).  
I would like to save my time even more in maintenance and **drop support for settings**.  
What about you?

_Poll ([view on site](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/4))_

As @kellnerd pointed out, no settings would mean that recordings, artists and works would always be highlighted.

---

<div class="post-metadata">

**Author:** ![kellnerd](https://community.metabrainz.org/user_avatar/community.metabrainz.org/kellnerd/32/66963_2.png) [@kellnerd](https://community.metabrainz.org/u/kellnerd)\
**Post date:** [January 27, 2022, 10:25am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/5 "2022-01-27T10:25:14Z")

</div>

> [@jesus2099](#):
>
> **drop support for settings**.

I guess this means the highlighting of recordings, artists and works will also be enabled by default? If that’s the case, I still need the setting to disable the highlighting of artists because I don’t want them to be highlighted (for the same reason I do not highlight labels: I don’t feel like I have collected that label or artist while I have that feeling for release groups, recordings and works).

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [January 29, 2022, 1:18am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/6 "2022-01-29T01:18:49Z")

</div>

## Post rewritten on 2022-02-04

The [bug when not highlighting all entity types](https://github.com/jesus2099/konami-command/issues/665) has been fixed on 2022-01-31! 😄

I see that the settings are useful and that some people do need them and we don’t all have same needs.  
So I keep them, as the bug is fixed.

---

<div class="post-metadata">

**Author:** ![IvanDobsky](https://community.metabrainz.org/user_avatar/community.metabrainz.org/ivandobsky/32/11785_2.png) [@IvanDobsky](https://community.metabrainz.org/u/IvanDobsky)\
**Post date:** [July 31, 2022, 11:50am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/7 "2022-07-31T11:50:10Z")

</div>

Really nice userscript. Very helpful.

A small question. I have five collections this is linked to. One of those collections is my CDs. Sometimes I Remove a release from a collection (when on the Release page) and add a different Release from the same RG. I have noticed that this sometimes confuses the collection highlighter. At this minute, when I look on my CDs Collection I see some items are not highlighted.

Is there a way to force a refresh of just one collection?

I see this list:  
 ![image](https://community.metabrainz.org/uploads/default/original/3X/5/0/5032fe6db189dce831630c09927478b9a07220f1.png)

That shows one of my collections is intentionally not highlighted. Which is great.

So I hit Reload on the first one… hoping to refresh just that list. And it dropped the highlights to the others.  
 ![image](https://community.metabrainz.org/uploads/default/original/3X/5/c/5c0c05fef3f72b897c5b333548e4d097bde478b3.png)

For next time - is there are more correct way I could have refreshed just that first collection? Or a way to drop and then re-add just one collection?

(Meanwhile, it doesn’t take too long to re-add 2000 releases so not really a problem 😁 )

Thanks

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [July 31, 2022, 10:09pm UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/8 "2022-07-31T22:09:01Z")

</div>

> [@IvanDobsky](#):
>
> I see some items are not highlighted.

To remedy this, you can click the _force ON_ link in the release sidebar. It should work.

Except [sometimes it is not immediate for me](https://github.com/jesus2099/konami-command/issues/560), and I don’t understand why but after some minutes or hours, the release gets highlighted, without reclicking _Add_ or _ON_.

> [@IvanDobsky](#):
>
> Is there a way to force a refresh of just one collection?
> 
> I see this list:  
> ![image](https://community.metabrainz.org/uploads/default/original/3X/5/0/5032fe6db189dce831630c09927478b9a07220f1.png)

If you click _Append_, it will add this collection releases (and their content) to your current list of highlighted releases (and their content).  
It does not remove any stuff. And no problem if a release is in more than one collection.

It’s the link you are looking for.

The other links, _Load_ and _Reload_ will wipe your list of highlighted stuff, first, then reconstruct the list with only this collection.

It’s called _Load_ or _Reload_ but it’s the same reset then load.

Maybe I should find better names.

And also, [this script is in the middle of a rewrite](https://github.com/jesus2099/konami-command/issues/64) and some stuff is not working, like, I forgot what.

---

<div class="post-metadata">

**Author:** ![IvanDobsky](https://community.metabrainz.org/user_avatar/community.metabrainz.org/ivandobsky/32/11785_2.png) [@IvanDobsky](https://community.metabrainz.org/u/IvanDobsky)\
**Post date:** [July 31, 2022, 10:58pm UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/9 "2022-07-31T22:58:47Z")

</div>

Nice. That makes sense. So in this case “Append” becomes “Refresh” when I click on it.  
 ![image](https://community.metabrainz.org/uploads/default/original/3X/5/0/5032fe6db189dce831630c09927478b9a07220f1.png)

I will also look at the “Force On” link in the release sidebar next time I manage to confuse things. See if that helps. I can especially confuse things when I am “moving” my CD from one release to another one in the same RG. i.e. I add a new Release, and then delete an old one sometimes I end up with a slightly confused set of highlights.

I am good at breaking things. 😆

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [August 1, 2022, 11:08am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/10 "2022-08-01T11:08:00Z")

</div>

> [@IvanDobsky](#):
>
> I can especially confuse things when I am “moving” my CD from one release to another one in the same RG. i.e. I add a new Release, and then delete an old one sometimes I end up with a slightly confused set of highlights.

I have tested this case many times, it should not cause problems.  
There is no preferred order to do it (remove first or add first).  
But you must wait for the end of the first task before making the second task.

---

<div class="post-metadata">

**Author:** ![IvanDobsky](https://community.metabrainz.org/user_avatar/community.metabrainz.org/ivandobsky/32/11785_2.png) [@IvanDobsky](https://community.metabrainz.org/u/IvanDobsky)\
**Post date:** [August 1, 2022, 5:59pm UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/11 "2022-08-01T17:59:52Z")

</div>

If I ever work out the pattern of how I break it, I will let you know. I run this in Vivaldi on Win10. And yes, I will wait for the dialog to tell me it has finished before closing the browser tab. Maybe it doesn’t like it if I go look at another tab while it is updating?

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [August 2, 2022, 7:36am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/12 "2022-08-02T07:36:26Z")

</div>

> [@IvanDobsky](#):
>
> Maybe it doesn’t like it if I go look at another tab while it is updating?

You don’t need to keep this tab the active one.  
No problem.  
Just not updating the collection in several tabs at the same time.

---

<div class="post-metadata">

**Author:** ![UltimateRiff](https://community.metabrainz.org/user_avatar/community.metabrainz.org/ultimateriff/32/47799_2.png) [@UltimateRiff](https://community.metabrainz.org/u/UltimateRiff)\
**Post date:** [February 15, 2023, 8:08am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/13 "2023-02-15T08:08:03Z")

</div>

is there any chance of adding support for recording collections, for those of us into digital media?~ especially since there’s now a collection type for [owned recordings](https://tickets.metabrainz.org/browse/STYLE-2233) as of a few days ago

---

<div class="post-metadata">

**Author:** ![thomnottom](https://community.metabrainz.org/user_avatar/community.metabrainz.org/thomnottom/32/3612_2.png) [@thomnottom](https://community.metabrainz.org/u/thomnottom)\
**Post date:** [January 19, 2024, 8:21pm UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/14 "2024-01-19T20:21:19Z")

</div>

Just wanted to say thank you for this. I installed the script a while back but never bothered to learn how to use it. Now that I have, it is IMMENSELY helpful.

One request - would it be possible to assign different colors to different collections? I have a couple collections for physical and lossless and another one for lossy. Would love to quickly see that I own an album, but only in mp3.

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [January 19, 2024, 11:06pm UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/15 "2024-01-19T23:06:01Z")

</div>

Thank you very much for sharing your experience on this userscript (the MBS feature that is the most missing for me).

> [@thomnottom](#):
>
> to learn how to use it

By the way, if you have any ideas of what could have helped you understanding how it works, faster, please let me know. 🙂

> [@thomnottom](#):
>
> assign different colors to different collections?

I agree it would be great!  
There is already this feature request logged:

> <https://github.com/jesus2099/konami-command/issues/729>
>
> I'd love to be able to separately highlight different collections. I currently u…se the plugin to highlight all the albums in my physical collection, but it would be useful to also highlight digital releases I collected in another color. This could be solved by offering 2-4 slots where collections could be loaded into, each with different highlight colors.

But honestly I really don’t know if I will ever have time to implement this.  
Fixing bugs on my userscripts is already quite late behind.

---

<div class="post-metadata">

**Author:** ![thomnottom](https://community.metabrainz.org/user_avatar/community.metabrainz.org/thomnottom/32/3612_2.png) [@thomnottom](https://community.metabrainz.org/u/thomnottom)\
**Post date:** [January 20, 2024, 3:42am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/16 "2024-01-20T03:42:18Z")

</div>

> [@jesus2099](#):
>
> By the way, if you have any ideas of what could have helped you understanding how it works, faster, please let me know. 🙂

Honestly looking at it now, I’m not sure how I missed it. I think I installed it when re-installing other scripts of yours that I use regularly and for some reason I thought I’d be manually configuring the Collections to use rather than going to that page and doing something. But seeing your screenshots made me realize how much it was exactly what I needed - if I’m CD/vinyl hunting half the time I open Plexamp and look at what format is listed. 🤦‍♂️

> [@jesus2099](#):
>
> But honestly I really don’t know if I will ever have time to implement this.  
> Fixing bugs on my userscripts is already quite late behind.

No worries. Maybe it forces me to actually try my hand at some of this coding…

In the meantime, it’s now obvious that I actually have to pick up those 2 Yo La Tengo collabs that I skipped. 😅

 ![Screenshot_20240119_223757](https://community.metabrainz.org/uploads/default/original/3X/b/6/b6a14d12282032c704295c7fc56caf8e6d541f6d.png)

---

<div class="post-metadata">

**Author:** ![jesus2099](https://community.metabrainz.org/user_avatar/community.metabrainz.org/jesus2099/32/36_2.png) [@jesus2099](https://community.metabrainz.org/u/jesus2099)\
**Post date:** [December 30, 2025, 10:54am UTC](https://community.metabrainz.org/t/collection-highlighter-highlight-owned-stuff-releases-recordings/559889/17 "2025-12-30T10:54:13Z")

</div>

I have added [Retry on Network Error](https://github.com/jesus2099/konami-command/issues/944) (@chaban request) and [MagicISRC Support](https://github.com/jesus2099/konami-command/issues/883).  
Thanks for letting me know if I broke anything. 😅
