Cobular / ScoreSaverExtention

An extention to link scoresaber and beatsaver together much better
5 stars 0 forks source link

Does not work - undefined hash #4

Closed MiChAeLoKGB closed 2 years ago

MiChAeLoKGB commented 2 years ago

Hi,

seems like SkoreSaber has added an icon to their hash element and thanks to that (and the whitespace between the icon and the hash), the code stopped working (because your call to api.beatsaver.com starts with %20 To fix that, all you need is to change

let song_hash = hash_element.textContent;

to

let song_hash = hash_element.textContent.trim();

I have currently plopped the code to custom Tamper monkey script and it's working like a charm.

Cobular commented 2 years ago

Thank you so much! The email notification for this got lost in the void, but I'll get on this later today. Thank you so much for figuring out exactly what was up and needs to be changed!!