3 ms·
In the end, I managed to add a banner on my Hugo blog[1] that should appear with all the browsers (for now) except for Firefox and Brave. I did it in two steps:
by scaglio 5y ago
In the end, I managed to add a banner on my Hugo blog[1] that should appear with all the browsers (for now) except for Firefox and Brave. I did it in two steps:
1- CSS "supports" feature to identify Mozilla Firefox[2]
2- A simple JS script to identify Brave[3]
[1]: https://crooked.ink https://crooked.ink
[2]: https://stackoverflow.com/questions/12625876/how-to-detect-chrome-and-safari-browser-webkit https://stackoverflow.com/questions/12625876/how-to-detect-c...
[3]: https://stackoverflow.com/questions/36523448/how-do-i-tell-if-a-user-is-using-brave-as-their-browser https://stackoverflow.com/questions/36523448/how-do-i-tell-i...