deevroman / better-osm-org

A userscript that adds several useful features to osm.org. β
18 stars 1 forks source link

Stat HDYC in profile (Chrome sometimes) #15

Closed ivanbranco closed 2 months ago

ivanbranco commented 2 months ago

The README says: Stat HDYC in profile (Firefox only)

This is true most of the time, I have Chrome and I can't read the stats...but! Sometimes it happens I find users of whose the stats are visible, example: image

maybe this could help you understand what the problem is?

deevroman commented 2 months ago

HDYC by default requires authorization to view the user's profile. But if the user has made the profile public (green checkmark), then authorization is not needed.

The problem is that I embed the HDYC site into the OSM site and Chrome blocks the cookies that are responsible for authorization, and HDYC stops showing the profile of non-public users.

In Firefox, you can disable Tracking Protection and authorization will work; I have not yet found a workaround in Chrome.

ivanbranco commented 2 months ago

Oooh, I see. I never figured out how to set the green checkmark so I forgot about it. Thansk

deevroman commented 2 months ago

I never figured out how to set the green checkmark

Add a link like https://www.hdyc.neis-one.org/?username to the OSM profile description

ForgottenHero commented 1 week ago

Hey @deevroman, so when I'm looking at other people's user profiles I nearly always see the error "Please disable tracking protection so that the HDYC account login works". I made sure I'm logged in to HDYC.

Is this for me to turn off some sort of tracking protection? Or is it saying the user I'm viewing would need to change their profile settings for their HDYC to display? Here's a random user I was checking today: image

deevroman commented 1 week ago

@ForgottenHero In the case of Firefox we are talking about this: https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop#w_how-to-tell-when-firefox-is-protecting-you

If you are using Chrome, then unfortunately this feature will only work for public HDYC profiles. You can click on the Tampermonkey icon->Settings->Other and disable this feature