Sanojjonas visualise stuff

i noticed that when i disabled my userscript the side bar grew a small bit.
after some testing i noticed that removing 285px in stead of 250 didn’t adjust the side bar.

can you check if it is solved now?

I see the same issue …

or can you pull the last version & check if it is solved now?

2 Likes

Thanks it’s good now, on its own!
But combined with my COLLECTION HIGHLIGHTER, there was still 1px too much, so I have also changed my script, additionally. :slight_smile:

2 Likes

Recently I can’t display Bruce Springsteen event pages anymore (e.g.: https://musicbrainz.org/artist/70248960-cb53-4ea4-943a-edb18f7d336f/events?page=41)… initially yes, but then the tab (at least in Google Chrome) runs out of memory


I guess the more than 4000 event entries for this artist are the problem. Could this somehow be tackled in the userscript ?

how do you suggest i tackle it?

Maybe after parsing 1000 entries (or so) offer paging through the next 1000 and so on … if thats possible at all

hmmmm,
i’m not really sure how to fix this.

first i get everything from musicbrainz. this informs me that there are over 4000 items.
this gives the instant list of 4000 items with only the event name & date

then i will fetch each item individually so i get the correct information about that event. (event type/location/artists + playtime)
but the order they will be requested is the order i got them from musicbrainz (which is random)

so if i cap this of at 1000 items, you will still have a list of 4000 items with 1000 random items being fully fetched.

i tried the bruce springsteen account and it appeared to function (it took more then an hour to get everything)

what you can do in the meantime:
turn off that it automagically starts visualising stuff.
→ edit the userscript → change line 34
const autoVisualise = true; → const autoVisualise = false;

this will give you a button to start the function in my userscript.
so instead of it already requesting stuff when you enter the page, it will only do that when you press the button.

i have added something where i would store recent stuff in localstorage. and thus if you go back to that same page it will allready display a schedule or a list in stead of having to wait until everything is fetched from mb.
it will refetch everything so that it will update if values have changed since the previous time you visited that page.

3 Likes

i have added an add to calander button.


it gives multiple options to add add to different calenders

it will add the information of the child events to the description aswel so you can see per day per stage what plays when.

so if you click on the button next to a stage event, only that stage will be in the discription)
if you click on the button next to a day event, that day and the stages of that day event will be in description
if you click on the main festival event, all days and all stages will be added in the description

and if somebody want to check out my latest addition to the horror code that is my userscript this is what i did to import the script that creates the add-to-calander button:

const script = document.createElement(‘script’);
script.src = ‘https://cdn.jsdelivr.net/npm/add-to-calendar-button@2’;
document.getElementsByTagName(‘head’)[0].appendChild(script);

:sweat_smile: it ain’t stupid if it works :man_shrugging:

i made a small adjustment to only show the button for events in the future… (i don’t think there is any use of adding stuff in the past to your calander)

5 Likes

so i made a new change to my visualise script.
the main thing is that you don’t have to edit the config of the userscript to tweek any settings
i have added some user settings, they are visible if you go to your user’s collections page

i have already changed the text fields to something (hopefully) more logical.

i have also added a selection for the liked collections. it will now give you a list of your available artist-collections that you can use

6 Likes