uazo / cromite

Cromite a Bromite fork with ad blocking and privacy enhancements; take back your browser!
https://www.cromite.org/
GNU General Public License v3.0
3.15k stars 73 forks source link

Use real pure black color in web pages instead of dark gray color to save battery in dark mode without the need of heavy extension #1175

Open feraritn opened 2 months ago

feraritn commented 2 months ago

Preliminary checklist

Is your feature request related to privacy?

### Is there a patch available for this feature somewhere? Yes https://peter.sh/experiments/chromium-command-line-switches/ --dark-mode-settings Sets dark mode settings ### Describe the solution you would like EDIT : I tested all the options of Auto Dark Mode for Web Contents in chrome flags and impossible to obtain pure black color : https://french-anime.com/ Hello, black color saves battery use less resources =silent dusty computer fan, I use the famous extension dark reader by setting the contrast level to the maximum so I get real dark color instead of dark gray color in web pages= battery saved, but my computer is old and dark reader consumes resources and fan no longer stops :( a recent study shows dark reader extension consumes significant CPU resources : https://www.tomsguide.fr/google-chrome-ces-extensions-ralentisent-le-chargement-des-pages-mefiez-vous/ ![Capture d’écran_26-5-2024_152142_www tomsguide fr](https://github.com/Alex313031/thorium/assets/156324719/f857dbc8-d7c3-4c7e-bec6-803958fdba4c) https://www.tomsguide.fr/content/uploads/sites/2/2024/05/chrome-performances-extensions1.png https://darkreader.org/ so I try to deactivate dark reader extension and activate dark mode and auto Dark Mode for Web Contents in chrome://flags/ but sadly I get gray color and not real black color, so I search in https://peter.sh/experiments/chromium-command-line-switches/ and I find this command : --dark-mode-settings Sets dark mode settings. Format is [=],[=],... The params take either int or float values. If params are not specified, the default dark mode settings is used. Valid params are given below. "InversionAlgorithm" takes int value of DarkModeInversionAlgorithm enum. "ImagePolicy" takes int value of DarkModeImagePolicy enum. "ForegroundBrightnessThreshold" takes 0 to 255 int value. "BackgroundBrightnessThreshold" takes 0 to 255 int value. "ContrastPercent" takes -1.0 to 1.0 float value. Higher the value, more the contrast. but I try in vain to change the settings and contrast of dark mode but I fail and I can't get the real pure full black color, our dream please is this awesome browser will add option to enable real pure black colors in web pages = no more need an extension that can add wear our old computer or outdated, thank you very much :) ### Describe alternatives you have considered https://darkreader.org/ https://github.com/m-khvoinitsky/dark-background-light-text-extension https://github.com/code-charity/dark-mode
feraritn commented 2 months ago

Hello, I discover that black mode only saves energy in amoled screens, and I have a 7 year old laptop so my interest for this option has greatly diminished lol, it doen't matter to me if there is black color, but it says black mode can help minimize the blue light=better sleep, here is a site to test: I tested all the options of Auto Dark Mode for Web Contents in chrome flags and impossible to obtain pure black color :

https://french-anime.com/

uazo commented 2 months ago

I am not answering because I am really in doubt as to whether to remove dark mode completely or to always activate it and not allow changing. I will come back to this point when I understand how the information can be used by the website, please be patient.

Xisrr1 commented 2 months ago

I am not answering because I am really in doubt as to whether to remove dark mode completely or to always activate it and not allow changing.

What? Why?

feraritn commented 2 months ago

Great fantastic ! Thank you so much ! 🥇

some people say amoled screens even on very expensive devices are so rare, so there is no hurry, because unfortunately amoled are still a luxury even on high end laptops released these days and it seems it will be a long process for the amoled screens to become democratize and become less expensive, and that even says the dark gray mode (used by Cromite when we activate the auto flag dark web elements) uses a just small negligible additional energy consumption compared to the pure black world, therefore dark gray mode or black mode is almost the same in terms of energy, but perhaps there are people with medical vision difficulties and the pure black mode can help improve their vision....

this article says amoled black save just a little more battery than dark gray

https://www.xda-developers.com/amoled-black-vs-gray-dark-mode/

feraritn commented 2 months ago

And also about this famous site which apparently has complex fonts:

https://livetv.sx/frx/video/

when I use the dark reader extension with the contrast at its maximum, dark reade does not succeed in blackening the entire page, on the other hand when we activate the flag auto dark web elements of Cromite, Cromte succeeds in blackening this website without need dark reader extension so sometimes and on certain websites, it seems Cromite's native dark mode is better than the famous dark reader extension!

uazo commented 2 months ago

I am not answering because I am really in doubt as to whether to remove dark mode completely or to always activate it and not allow changing.

What? Why?

I have never looked at that patch so I have no precise information to give you. What I imagine is that the information is exposed to the website and thus users can be categorised between those who have the setting enabled and those who do not, granting an extra bit of entropy to the fingerprinting scripts. Since the combination ‘use cromite’ + ‘user ip’ is already a high entropy factor, the information ‘use cromite’ + ‘user ip’ + ‘dark mode active’ makes it even easier to identify the user between different sessions.

Xisrr1 commented 2 months ago

I am not answering because I am really in doubt as to whether to remove dark mode completely or to always activate it and not allow changing.

What? Why?

I have never looked at that patch so I have no precise information to give you. What I imagine is that the information is exposed to the website and thus users can be categorised between those who have the setting enabled and those who do not, granting an extra bit of entropy to the fingerprinting scripts. Since the combination ‘use cromite’ + ‘user ip’ is already a high entropy factor, the information ‘use cromite’ + ‘user ip’ + ‘dark mode active’ makes it even easier to identify the user between different sessions.

But it's the Chromium dark theme? Isn't it an exclusive Cromite feature?

uazo commented 2 months ago

But it's the Chromium dark theme?

yes.

Xisrr1 commented 2 months ago

But it's the Chromium dark theme?

yes.

So what's the problem with fingerprinting if many other browsers use that as well?

theFireProject commented 1 month ago

Since the combination ‘use cromite’ + ‘user ip’ is already a high entropy factor, the information ‘use cromite’ + ‘user ip’ + ‘dark mode active’ makes it even easier to identify the user between different sessions.

How does a website know that someone uses Cromite?

So what's the problem with fingerprinting if many other browsers use that as well?

It's still an additional factor that websites can use to identify you. Even though it's not a completely unique factor that's only used in Cromite.

Some people say amoled screens even on very expensive devices are so rare...

OLED screen are pretty rare and expensive on laptops but many mid-range phones have OLED displays and all high-end phones. btw it's called OLED in general. AMOLED is just Samsung's name for their OLED displays.

theFireProject commented 1 month ago

I am not answering because I am really in doubt as to whether to remove dark mode completely or to always activate it and not allow changing.

Please don't remove dark mode. It's a feature that many people want to have in all of their apps nowadays (especially on smartphones). If it's bad for privacy, maybe consider disabling it by default and tell users to use it at their own risk? But why would you completely take away the ability for users to choose what they prefer (privacy or dark mode)?

Xisrr1 commented 1 month ago

I mean, he can do it like Brave - toggle to always enable dark mode.

g-k-m commented 2 weeks ago

I just wanna say that pretty much every phone nowadays has an oled screen, and if u buy an ips phone in 2024 you're just screwing yourself. Even at the lowest end, we have phones like the Xiaomi Redmi Note 12 with price of € 95.00 / $ 170.00 / £ 116.00, and for a newer model we have the Samsung A15 with price of € 132.33 / $ 114.99 / £ 132.84, so basically for any budget range there's an oled phone that u can buy. Ips on phones is just a thing of the past. Which is why pure black is so important, if your phone's oled screen displays pure black it uses almost no battery and no burn-in. Gray is still good but it's not as good as black.