6 ms·
Russian visitors of my foss project (https://www.filestash.app/ https://www.filestash.app/) now see the message of peace address to them by president Zelenskyy:
by mickael-kerjean 5y ago
Russian visitors of my foss project (https://www.filestash.app/ https://www.filestash.app/) now see the message of peace address to them by president Zelenskyy: https://www.youtube.com/watch?v=Fwzb_JX7u04 https://www.youtube.com/watch?v=Fwzb_JX7u04
- hurflmurfl 5y agoJust to let you know, there's no message, and I'm visiting from a Russian IP. Disabling uBlock Origin doesn't make it show up either.
- mickael-kerjean 5y agoit shows the video if /ru/.test(navigator.language)
- orbital-decay 5y agoThis method is super inaccurate, since visitors from many countries (including Ukraine) could use Russian as their preferred language. You might probably want to use IP geolocation instead.
- capableweb 5y agoNo method is perfect, obviously. But in this case you probably want to use a bunch of heuristics, placing them in a OR statement would probably get you as close as possible. - Check preferred language (won't work for Russians who prefer English, and will show for non-Russians who prefer Russians) - Check where IP is coming from (won't work for Russians on the border if public node is on other side of bordering-countries, won't work for Russians who use VPNs) - Check preferred locale (won't work for Russians who has a different preferred locale, will show for non-Russians who use Russian locale) - Finally, ask the user where they are from (worse UX, won't work for people who are lying) Using all of them gets you pretty close to "perfect" but again, nothing is 100% perfect.
- unfocussed_mike 5y agoSide note: Russian is Zelenskyy's first language.
- mickael-kerjean 5y agoDone: https://github.com/mickael-kerjean/filestash-website/blob/master/_includes/footer.html#L95-L99 https://github.com/mickael-kerjean/filestash-website/blob/ma...
- app4soft 5y agoThank You, man! I'm Ukrainian[0] and YOUR SUPPORT for Ukrainian people in such terrifying times WOULD BE NEVER FORGOTTEN by me & by all Ukrainians actually fighting just for freedom FOREVER! [0] https://news.ycombinator.com/item?id=30395897 https://news.ycombinator.com/item?id=30395897
- alam2000 5y ago
- hans1729 5y agoFYI, after opening your page in the same tab (by accident) as HN, I couldn’t get back to HN, going back a page just ended up looping back to your site. I absolutely hate when websites do that (messing with expected behavior), please consider fixing it. (On iOS)
- exikyut 5y agoEither this was fixed 4 hours after your comment was posted, or the issue doesn't surface on Chrome on Linux or Android. I opened the site by clicking the link in the GP comment.
- hans1729 5y agoStill the case for me. Interestingly enough, it also happens in Firefox on macos.
- teclordphrack2 5y ago
- Klaster_1 5y agoNice idea, much better than blocking access completely, like what Intel or lots of other sites do.
- batisteo 5y ago"Russian visitors" by User Agent languages or IP? Either way it's hard to get the nationality right.
- playeren 5y agoI'm in Denmark, with ENG (US) as language, and I'm getting the speech. I like the speech, but I would also like to see your software. * edit: Seems fixed for me now. Filestash looks pretty useful btw!
- T3RMINATED 5y ago
- sofixa 5y agoYour comment was flagged, i vouched for it so i can downvote and rebuke. No. Inaction is equal to support of the Russian invasion ( like in so many other cases). People have to decide for themselves what they want, where their morals lie, and how they want to act on that. Message of support? Donation? Whatever. Ignoring the problem only helps the war criminals. Don't critique people for daring to speak and act against war crimes just because you're deciding for yourself to ignore them.
- rattlesnakedave 5y ago>Inaction is equal to support of the Russian invasion It certainly is not.
- sofixa 5y agoIt is, because apathy is the only chance of the Russians getting away with it.
- Clubber 5y agoIf you think posting on a message board on the internet will do anything, I'm sorry to tell you, it won't; it's just self serving moral gratification. Might as well send them some thoughts and prayers.
- sam0x17 5y agoIt most certainly is. In terms of the U.S.'s own involvement, we floated the idea of Ukraine joining NATO, but then did nothing to ensure it actually happened, and the end result is invasion. Staying neutral on the matter of a straightforward invasion of another country where there is no meaningful "two sides to the issue" analysis to be had is equivalent to materially supporting the invasion. Anyone remotely rational has condemned these actions. True neutrally is only desirable for those who want to continue doing business with the Kremlin or who have other nefarious designs.