Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Grayscale the Web – A Chrome extension to help avoid mindless browsing (chrome.google.com)
119 points by devastora on May 22, 2018 | hide | past | favorite | 77 comments



I love this idea, but sadly it's not for me. I tried this on my phone (going grayscale) and turned it off after 1/2 a day. Too many apps rely on color to differentiate different parts of the app.

It definitely gave me a greater appreciation for the plight of the colorblind, and it's why for my own company's products, we always test in B&W, to make sure no functionality is lost.

Relatedly, does anyone have any links to some good research on why this works?

Edit: OP has pointed out that this tool lets you choose sites to have in color or grayscale, so that's a bit of a game changer, as on the phone it was all or nothing.


Why go grayscale? Is there any data to support the claims made by the extension? (see below)

The extension linked says:

> Can't stop surfing the web? You may not realize it, but all of that color is designed to hijack your brain and keep you browsing.

> You'll soon find that time wasting sites hold your attention less, and this will hopefully help you focus on whatever it is you really need to be doing.


I hadn't done any scientific studies, just had read about it and decided to give it a try on my phone. It made a difference for me, so I wanted to make something for chrome since as a dev I spend most of my day on there.

I'd say it's worth a try at least to see if you see a difference. It's strange browsing without color, and when you use grayscale and go back to color it almost feels overwhelming.

Here are some articles though that go into it more:

http://www.tristanharris.com/2016/05/how-technology-hijacks-...

https://blog.mozilla.org/internetcitizen/2018/02/13/grayscal...


This makes me wonder: what if instead of converting everything to grayscale, you swap color channels. I'm sure that would make images less appealing (e.g. human skin color would become something completely different), but still you'd be able to distinguish colors, so functionality isn't lost. Also, black and white, and grayscale stays the same, so text remains readable.


This is easily done, you can create an index for each color or color range.

Additionally, you can mess with the typical B&W conversion weights for each channel.

However this got me thinking, what do we want when we convert an image to bw? It's a pretty hard problem, because we want both semantic segmentation and preserving lightness. Also you clearly can't have a one-to-one mapping when you lose 2 dimensions. Of course in the case of a simple UI that's not a problem, but with photography it is.


I work for a university making some of their websites ADA compliant. Simulating several different colorblindnesses is part of doing so. It always surprises me how even universities can be up-to-date with accessibility but sites as popular as Facebook or google can fail many of the checks we do.

It must have to do with the university receiving federal funds..


As a red/green colorblind the only thing that I hate when people mess up are charts, never had a problem with everything else


The irony about Facebook is that Marl Zuckerberg is red-green colorblind.


There's very little irony in that. Zuckerberg made Facebook for others to use; not for himself (OK, for himself, but not for himself to use it). This just underlines that further.


Yup. Also, we maybe so dopamine sound-, color- & effects-addicted that we’ll subconsciously make any excuse to keep the glowing box neck hunched over. Even street signs to watch for oblivious pedestrians on smartphones, as well as signal-lit crosswalks so pedestrians never have to look up.


I feel you. I tried to make it easy to toggle on and off in case you needed to check something in color, but it's a bit of a double edged sword in that it can be too easy to turn it off and leave it off.

That's a big part of why I added the saved/excluded sites functionality, so you could add it for sites that are usually time wasters like reddit or facebook, or exclude sites from being gray that you need for work.


This is a good point. On the phone it was all or nothing. Here I can choose. So maybe I will give it another try!


Newer Android phones allow you to set an accessibility menu shortcut. If you only have one menu item selected, the shortcut just toggles that menu item. I press vol-up & power to toggle greyscale.


I'm not sure what kind of phone you have, but on an iPhone you can set your phone to toggle B&W and normal color by triple clicking the home button.


I have an iPhone and didn't realize this. Thanks!


I just installed it and liking it so far.

I had the same issue with the all-or-nothing phone experience because of maps that I use everyday for traffic.

I'm liking this so far.


Thanks!

By the way, for the phone thing I had the same issue. If you have an iPhone, you can set it so triple clicking the home button toggles it - https://lifehacker.com/change-your-screen-to-grayscale-to-co...


If you are on windows you can use this awesome tool to have it globally: https://zerowidthjoiner.net/negativescreen

nice plus: inverted mode with correct colors (only brightness inverted)

You could even write your own translation matrix. It's a bit tricky at first, but fun. e.g. true black and white without greys.

For your own matrix this might help (but definitely another format :/ ):

https://kazzkiq.github.io/svg-color-filter/

http://alistapart.com/article/finessing-fecolormatrix


If you are on macos you can do it globally and natively by going in the accessibility settings.


Check out Nocturne (originally from Blacktree, of QuickSilver fame). It even has a full red monochrome option (in case you need to finish that paper at 2 am but don't want to keep your roommates awake).

I really wish Android and iOS had a full red monochrome night-vision mode.

Short of that, for Android, you can switch to monochrome directly in Developer mode: https://www.trishtech.com/2016/02/how-to-turn-android-lollip...


iOS does have a red monochrome option! Settings > General > Accessibility > Display Accommodations > Color Filters > Color Tint

Not the easiest to find, but it's there for people who need/want it.


> (in case you need to finish that paper at 2 am but don't want to keep your roommates awake).

Like iOS, macOS has native Night Shift mode as well. Or you can use F.lux


Not the same. Nocturne turns white black and black red.

But have an upvote for the suggestion!


Same goes for any recent Windows version (1709 or 1803?) - Settings -> Ease of Access -> Color filters.


Shortcut Win + Ctrl + C. I've known a couple people accidentally press it and think their display is broken! Use it quite often for quick visibility testing.


This is very cool. Last week I went full greyscale on my ipad and iphone, and over the weekend on my macbook pro.

It definitely forces me to think about each time I use each device - the stark contrast in colors to the real world requires a sense of intentionality that I really like.


I did the same earlier this morning and I agree with this sentiment so far. I find it difficult to be mindless on the screens, and it makes me appreciate the colors of the offscreen world so much more.


For Firefox you can use the Stylish addon and "filter: grayscale(100%)" for similar effect.


A warning that Stylish is now owned by an analytics company [1].

If you want a community owned alternative, check out Stylus: https://addons.mozilla.org/en-US/firefox/addon/styl-us/

[1] https://forum.userstyles.org/discussion/53233/announcement-t...


Thanks, exactly what I was looking for. I went to "Create New Style" and added the following and now I'm all set:

  html {
    filter: grayscale(100%) !important;
  }


Thanks. pairing this with 'dark night mode' is pretty nice.


oh wow, that is nice. I've been looking for something like dark night mode for a while now, glad you pointed it out


Thank you. I use the grayscale option on my Android Phone. I have to say, with the exception of reading on it, everything else is boring as fuck, which is great. Everything around seems so much more colorful than that device.

I'd like to see this pattern (intentionally making the experience worse, to prevent the facebook shithole effect)used in more devices.


Thanks! I'm glad you like it. I started using the grayscale option on my iPhone a while back and found the same thing. Sites were suddenly way less engaging. It almost felt like going through withdrawal after using it for a few days.

Have you heard about the upcoming Android P? It's got a lot of tools to help you control your browsing, looks pretty helpful - https://www.theverge.com/2018/5/8/17327302/android-p-update-...


Yes, I'm enrolled in the beta and the advertised features for wellbeing are not there. But it's ok anyways cus I have grayscale full time on my phone.


Text based browsers have had this option for ages, though some say they copied it from printers.

Notably this doesn't help with food, I've been only buying greyscale (Rice, Oreos, Guinness, etc.) for a while now and my mindless consumption hasn't dropped.


> Oreos

You need to take them out of the original packaging and put them in a greyscale container as well.


Nice idea!

Would be great if it was not just On/Off switch, but one could set timer (per site) and it would gradually desaturate website the longer you stay (1%, 2%, ...).

When timer turns 0, then site becomes fully grayscale (100%). When page is closed, then the timer is reset (after the same period of time?).


Thanks!

Originally I was going to implement a slider where you could adjust the amount of grayscale, but wasn't sure if anyone would use it. I really like the idea of having it gradually go gray, I might look into that when I get a chance to work on this again.


I’ll definitely try it, thanks! I’ve been “on” grayscale on my phone for a few months now and I’ve enjoyed it very much.

One “proof” that I have of grayscale’s benefits is that when I switch back to color (which happens at most once every 2 weeks), I find the colors to be extremely (visually) “loud”.

Is it reasonable to think that we get desensitized to color, and that using grayscale re-sensitizes us? i.e. can this be compared to avoiding sugar or salt as much as possible, and then noticing how much the “old”, “normal food” was actually sweetened / salty?


I know what you mean. If I'm good about using the grayscale, when I see a site with color it's almost overwhelming. You get desensitized to all that color.


FYI: you can go black&white on Windows 10 by pressing Win+Ctrl+c

Edit: does anybody know if there's a way to do the same on GNU/Linux ?


Too monochrome? Try ponyFilters! https://github.com/webdev23/ponyFilters


Sounds like an interesting idea but would be awesome if rather than grayscale it just lessened the contrast and made colors a lot less vibrant. That would still help a lot


Here's perhaps a silly question. Even more so since I haven't read all the comments, only the top ones. How does grayscaling the web avoid mindless browsing?


From the extension description:

>You may not realize it, but all of that color is designed to hijack your brain and keep you browsing.

>Grayscale the Web is a great solution to help with this. It removes all of the color, giving sites a plain, grayed out look. They will appear much more boring, and that's the whole point. You'll soon find that time wasting sites hold your attention less, and this will hopefully help you focus on whatever it is you really need to be doing.


Ah, I skimmed the description too fast then. Thanks you.

The colors on HN keep my attention quite well!


That's the claim, but not an explanation. HN isn't multi-color.


You have a point. But even though HN doesn't have a ton of color, it still feels different on grayscale I think.

Most of the evidence is anecdotal, but it seems to work for a lot of people (myself included). I went into it more here - https://news.ycombinator.com/item?id=17133984


This is an excellent idea, and makes me realize just how much I'd love to be able to have an Android phone with an e-Ink only display.


Anything similar for Firefox?


Looks like there are a few options available to try - https://addons.mozilla.org/en-US/firefox/search/?platform=ma...


Yeah, I think this should work: https://userstyles.org/styles/160346/greyscale-4206969

Just try it out and let me know if it doesn't.


This is just perfect - thank you!



It’s well-intentioned but why not just use the OS to solve this? Seems like too narrow of a solution to a much bigger problem.


Because I want my IDE, github and the app I am working on to be colorful and everything else blunt


Very cool, I will test it thought the week and see if I can notice any effects

I like this idea better than those extensions that just block websites altogether, those do not work for me cause I just disable them when I want to go "mindless browsing"


Awesome! Thanks for building this. I have been using grayscale on my phone and I love it.


Seems very useful, thanks. Curious how it affects cpu usage. Would be cool if you can explain how it works. I can see even the gifs and videos(which I think makes this even more useful) are rendered black & white.


Potentially there's power savings on a mobile device by restricting the color palette to grayscale? If so this could be incorporated into one's phone's battery saver mode.


My guess is that it just applies a CSS filter on the entire page.


Yep, you got it. For the most part I'm just adding filter: grayscale(100%) to the html element.

There some other stuff going on though. I noticed that for the html and body elements, if they had a background image/color, the grayscale trick wouldn't work for them.

So, on the options page I added a toggle to "Remove All Background Colors and Images No Matter What". This goes through the page and checks if there is a background image or color, then uses this library (https://github.com/bgrins/TinyColor) to check the perceived lightness of the color and changes the background to use a shade of gray instead.

Performance wise, I don't have any specific numbers, but I did a lot of dogfooding on my own before releasing and didn't notice any perceivable slowdown.


does anyone have a link to the people who made this? I see 'Dev Astora' but can't find them on the web.

am always hesitant to install browser plugins that have no website link, about, and privacy policy..


Is there a way to do this in Linux/Ubuntu/Debian?

I've looked as hard as I could but I couldn't find any solutions, at least not one that didn't require writing your own drivers.


Super useful, thank you! Is there anything like that for Safari?


Thanks! I took a quick look and it doesn't seem like there's any plugins out there for grayscaling in Safari right now.

If you're talking about mobile safari though, you can do it on an OS level and toggle it by pressing the home button three times in a row - https://www.ped30.com/2018/01/13/apple-iphone-gray/


I just set my iPhone up for that. I am hoping it makes a positive difference.


This is actually pretty cool, I installed it and it already feels a bit easier to maintain control over what my attention is on.


Pretty cool, I like it!


This made my day! Thanks Dev Astora for working on it :)


Thank you! I'm glad to hear that : )


This will be awesome for my e-ink monitor.


You have an e-ink monitor? When did they hit the market?!


I'm expressing a hope to the point of lying.


This extension should be one CSS line, why does it load 3 libraries as content scripts?

    :root {filter: grayscale(1) !important; background: #fff}
I wish extensions had a native way to whitelist/blacklist websites. Until then, you're better off adding that line to Stylish.


Do you mean three separate js files? Two of them are plugin specific files I separated out to make managing the different features easier.

The only library I'm loading is tinycolor.js, which I added for the togglable feature where it checks the site background colors and adds an appropriate gray for it. You'll find that making the background always be white doesn't actually work some of the time, especially for sites with darker backgrounds.

The extension is (god forbid) more than one line of code because I wanted to add features and controls I didn't see in other plugins, like:

* setting it for specific tabs

* setting it for all sites

* being able to save sites to always be gray

* being able to exclude sites from being gray when the "tab" or "all sites" settings are on

I too wish extensions had the built in functionality to add/remove saved sites, tabs, etc, but as that's not the case today, I had to do it myself with the chrome extension APIs.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: