Sanojjonas visualise stuff

This great userscript currently shows you graphical band member history, with roles, and also event timetables.


First issue (historic) (fixed)

I installed sanojjonas visualise stuff and tried it on the event page I think I saw as a screenshot, over there: Bruis 2024 - MusicBrainz

But it didn’t work for me (it says Syntax error?):

@sanojjonas, any idea?
What userscript engine are you using?
I am on Windows 10, Vivaldi 6.9.3447.41 (Chrome 128), Violentmonkey 2.20.0.

3 Likes

i used tamper monkey.

but i think i pushed a fix, it had to do with some await stuff that wasn’t in an async function. so i just put a function around it.

can you see if you install the latest version if it works then? @jesus2099

1 Like

Love the script @sanojjonas !

I would really hope for something like this to eventually be integrated into MB. It feels rewarding to see a nice timetable after entering a festival. :slight_smile:

It doesn’t show this festival edition properly, and I’m not sure why, perhaps you could take a look? This different edition of the same festival is fine. Could it be that it can’t handle the first edition because it has one performer playing till 00:00?

1 Like

it was because when a start & end time is given is looked for:
“start”:“time” - “end”:“time” and not “start”:“time”-“end”:“time”
for example
17:00 - 17:45 in stead of 17:00-17:45

i changed it so if you update the userscript it should work with both (there is nothing in te code guide lines for entering start and end times but i personally think with the spaces looks cleaner)

if there is no end time then i guess the end time is 30 minutes later then the begin time.

1 Like

i have also added member artist table.

it shows you a time table of in what other bands where the bandmembers of this band also.

(and if you have a liked collection it will show the liked artists in color)
(i know the colors are ugly but i needed a way to have them stand out, so i generate a color based on a string and in this case i use the bandname)

3 Likes

OMG you’re a genius!

And the Instrument Table!
We’ve been waiting for this for years!

Would it be possible to group consecutive empty years?
Like in AJICO - MusicBrainz

But maybe it would bring unwanted side effects.

they are grouped per row
i first order them:

  • begin year (lowest year)
  • end year (highest year, so i get the longest period the member played in)

then i put them in groups:

  • if the begin year of the new item is higher or the same as the end of the previous item it gets added to the same group (unless the begin & end years are the same, then it checks if the previous item also has a same begin & end year)
  • otherwise it gets added to the next group

the idea is to get a chronological time order of a bandmember. if i group them per artist then some members that play in multiple bands over the year will have WAY more groups.
while now i try to have the least amount of groups.
here is an example of what i mean.


if it would be grouped per band it would have made up to 14 groups.
while now you can see it next to each other in chonical order.

i think the different band colors also help, i currenlty only add them for liked artists. but maybe i should add a setting so this can be enabled for all bands.

1 Like

Awesome, thanks! It does indeed work now.

Got another example where something is not working perfectly. This festival(part) doesn’t display properly yet. I am assuming Orchid and R.a.T. don’t display properly because they have no end-time, timetable says ‘till dawn’ so I left it open. Not sure though why DJ Shiva is placed at the right, it does show the correct time.

image

What is liked artist?
Artists with 5 star rating?

you can specify a collection of artists.
any artist in the collection you specify is a liked artist

hmmmmm
in my opinion, either something has a begin & end time or it only has a begin time. so if the end is uncertain it would be better to leave the - if there is no end time (or guestimate an endtime for dawn)
if the - would not be there it would visualise it as 30minutes long (also i think the max i currently have is 6:00 as end time, past 6:00 will count for the beginning of the next day)

the reasone why dj shiva is at the back is because it needs the end time of the previous artist to put them in order.

i’m not sure if i should fix this.
the userscript is made to point out some irregular stuff so we can fix the data in music brainz
if orchid & R.A.T don’t have the - it would fix the dj shiva thing aswel

1 Like

Aah I understand, thanks for fixing it :slight_smile:

if my userscript is showing something incorrect i will fix it.

and if we all agree that we should be able to add start time-
then i will make a workaround for it to fix it.

but for now i see this as incorrect data, and then we should fix the data.

Could you please remove the target="_blank" attributes from all your links?

I can’t open links in same tab, with this attribute in place. :pleading_face:
If you remove it, people have the choice to open in same tab or in new tab, by long-touch or right-click.

These attributes are welcome for links within edit form pages, where you don’t want your form to be replaced by a new page, but they agree not welcome (IMO) in the regular pages (like artist and event pages).

i have created a parameter for the target.
the default now is _self.
(if you update)

1 Like

Very cool script! It is as mentioned one of those features that has been requested for years but never gets added, probably because there aren’t enough devs and they’re too busy with other more important stuff. I also like that the script gives you the incentive to add start/end dates to the relationships!

Some requests/ideas for improvement:

  • Add a max width and a scroll bar. The table can sometimes break the layout, for example The Yardbirds - MusicBrainz if there are many relationships and if the artist has been active for many years. It would also be cool if you then also made the first column a th and fix its position with css so that you can scroll horizontally but the first column always remains visible to the far left.
  • Add the instrument/group table to the relationships tab (The Yardbirds - Relationships - MusicBrainz) or perhaps add a setting where the user wants it to be displayed.
  • Turn the H1 headlines into H2 so they fit in better and becomes MB orange
3 Likes

Yes maybe new tab was not so bad, as the tables take time to be generated.

In that regard, you should probably move band member tables to the relationship tab , as said, indeed, otherwise we launch that generation far too often when browsing MusicBrainz artists. :thinking:

1 Like
  • i have change the h1 to h2 (except for the busy thingy)
  • i have added arrays for what pages you want to view them on, so you can choose where you want them or if you want them on multiple places.

for the scrolling part i have to do some research to get that working

3 Likes

Amazing work… just tried it on Hawkwind as they have had a few members over time and lots of other bands. Which makes it work a little hard… Looks so so good.

Would be deserving of its own tab in the Artist pages.

Colours are great to see as it adds to clarity, and it would be good to see more colour on the “Member Artists” section.

2 Likes

if you change the allBandColors to true, then it will give all the bands a color on that tabel.

2 Likes