While exploring Onehack, I noticed a popup near the logo where it mentioned a feature to wake up the site and adjust the brightness of the entire website. I tried it out, and here it is.
I was really in need of this feature, and it’s very convenient, as my eyes were in pain when switching from dark to bright mode on the Onehack homepage. After this feature, it has become much more convenient, easy to use, and helpful for my eyes.
I really appreciate this and am going to implement this feature in my upcoming project.
Once again, thanks to the entire Onehack development team for this feature. @moderators
Glad you found it and it’s helping your eyes! That’s exactly why we built it — browsing at night shouldn’t feel like staring at a flashlight.
Quick tip if you missed it: the brightness level you set is saved automatically. So next time you visit, it remembers your setting — no need to adjust again every time.
If you want to build something similar for your own project, the concept is simple: a full-screen overlay with adjustable opacity + localStorage to remember the user’s preference. Works great on any website.
Happy to hear it’s useful. Let us know if you have any suggestions to make it better!