motzel / ScoreSaberCountryLeaderboard

ScoreSaber.com enhancements
https://scoresaber.com
MIT License
21 stars 2 forks source link

Profile displaying twice #109

Closed davaayy closed 2 years ago

davaayy commented 2 years ago

Describe the bug In the top tab, my user profile shows up twice, there are also 2 friends tabs, and whenever I click on a map, the leaderboard shows up twice as well, with the top one saying "undefined" in the map decription window

To Reproduce No Idea. Never did anything to the extension, I am on Microsoft Edge, but when I imported my backup into chrome, I saw the same thing, however it was gone upon refresh

Expected behavior Only one of each tab:(

Screenshots Countryleaderboard

Please complete the following information:

Additional context I think this issue started appearing about a week back. I could be wrong though

motzel commented 2 years ago

Officially the project is no longer supported, but I took a look at it. I'm not able to reproduce it on the exact same version of the browser.

But I see that Umbra added something called Rocket Loader managing the javascript loading and this is probably the reason for this behavior. Judging by your screenshot my userscript is running twice because I see a double avatar with a flag on the navbar.

Could you press F12 and in the dev console check if you see the duplicated "[ScoreSaber country leaderboard] init" message?

motzel commented 2 years ago

I just released version 1.8.4 with protection against double initialization of the script. Did it solve your problem?

motzel commented 2 years ago

And by the way... I encourage you to try https://ssr.motzel.dev It doesn't support all the features of this userscript yet, but it has some cool new features 😁

davaayy commented 2 years ago

It did! Thanks a lot! Would you still like the screenshot?

motzel commented 2 years ago

Since it's working I'm closing the issue. I'm glad it solved your problem 😁