Author Topic: Changing the color of a site I visit  (Read 2003 times)

Offline kimmer

  • Administrator
  • TS Addict
  • *****
  • Posts: 9086
    • View Profile
Changing the color of a site I visit
« on: November 01, 2010, 01:54:51 PM »
Aargh! There is a site that I enjoy visiting, but they've now gone to a totally black background with white letters and the few graphics are in bright red. It's horribly hard on my eyes. I know there is a command to change my screen so that dark is light and light is dark -- but I can't remember what it is.

Also, is there a way to set things so that I don't ever see a black background? I've written to the site owner, but he doesn't give a rip. Fortunately I only need to go there once a month, but still it's almost painful.

Offline Paddy

  • Administrator
  • TS Addict
  • *****
  • Posts: 13797
    • View Profile
    • https://www.paddyduncan.com
Changing the color of a site I visit
« Reply #1 on: November 01, 2010, 02:05:16 PM »
"If computers get too powerful, we can organize them into committees. That'll do them in." ~Author unknown •iMac 5K, 27" 3.6Ghz i9 (2019) • 16" M1 MBP(2021) • 9.7" iPad Pro • iPhone 13

Offline kimmer

  • Administrator
  • TS Addict
  • *****
  • Posts: 9086
    • View Profile
Changing the color of a site I visit
« Reply #2 on: November 01, 2010, 06:14:12 PM »
Thanks, that's it and there's the secret key commands. wink.gif

Offline krissel

  • Administrator
  • TS Addict
  • *****
  • Posts: 14735
    • View Profile
Changing the color of a site I visit
« Reply #3 on: November 03, 2010, 02:57:18 AM »
There is a permanent way to make all backgrounds on the web white.

https://extensions.apple.com/

Scroll down to Machintosh Helper

Note that to turn this off, go to Safari Prefs/Extensions and untick the box.

If you use FF:

http://www.zhacks.com/2010/04/13/improve-w...kground-images/


A Techsurvivors founder

Offline kimmer

  • Administrator
  • TS Addict
  • *****
  • Posts: 9086
    • View Profile
Changing the color of a site I visit
« Reply #4 on: November 03, 2010, 11:28:18 AM »
Thanks, Kris. That's interesting. On a site where you have "layers", it only turns the background layer white, so it left that other site black with white letters. Here's a snapshot of this board without the extension:

[attachment=2013:Picture_6.png]


and with the extension:
[attachment=2014:Picture_4.png]


Me thinks they need to do some work on that extension. wink.gif

Offline Xairbusdriver

  • Administrator
  • TS Addict
  • *****
  • Posts: 26388
  • 27" iMac (mid-17), Big Sur, Mac mini, Catalina
    • View Profile
    • Mid-South Weather
Changing the color of a site I visit
« Reply #5 on: November 03, 2010, 03:50:46 PM »
You can always assign your desired background and <p> colors with a personal CSS file. Practically any html tag you can think of, for that matter. The biggest problem with pages that have a black or extremely dark background color is that they often use white text. So, if you only take care of the background color, you may not be able to even see the text! Of course, if you create your personal CSS file, it will take precedence over anything that the page CSS tries to use for those particular html tags.

Of hand, I think the cascading flows like this:
    1. External CSS file
    2. Internal CSS definitions (up in the Head area)
    3. Inline CSS info (in the actual html tag info)
    4. Personally created CSS file(s) (stored on your hard drive and set in a browsers prefs)
The order of 'strength' is equal to the size of the number above. In other words, #4 over rides all others, for the styles in its declarations.

It's just another reason web designers can't expect what they design to always appear on the users screen. Even if their browser supports everything they try to do. wink.gif

So, if you always wanted a white background with black text, you could type up the following css in a plain text editor (NOT WORD!!!).

The CSS:
CODE
html {background:#ffffff; color: #000000;}
Save it as "My Special, super-duper, plain white background with black text.css" Then, in each browser, simply tell it to use that file. Just note the use of 'braces' {} instead of parentheses, a colon between the property (background) and its value (#fff), and a semi-colon after each property pair. This also shows how simple CSS can be, just like html, it's nothing more than plain text. No magic needed. rolleyes.gif You can even use key words (white and/or black) for many colors instead of the RGB values, and shortened versions of those hexadecimal numbers instead of all six characters (#fff for #fffff and #000 for #000000).

For those with visual problems, the size of the text could be increased in a similar manner by using the 'font-size' property, for example.
« Last Edit: November 04, 2010, 01:49:46 AM by Highmac »
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system
CAUTION! Childhood vaccinations cause adults! :yes:

Offline kimmer

  • Administrator
  • TS Addict
  • *****
  • Posts: 9086
    • View Profile
Changing the color of a site I visit
« Reply #6 on: November 04, 2010, 01:55:26 PM »
ABD, thank you. Excellent idea -- just not sure how I'd make it work on only 1 site. Still, creating the CSS file for myself would be a good exercise.

Offline Xairbusdriver

  • Administrator
  • TS Addict
  • *****
  • Posts: 26388
  • 27" iMac (mid-17), Big Sur, Mac mini, Catalina
    • View Profile
    • Mid-South Weather
Changing the color of a site I visit
« Reply #7 on: November 04, 2010, 05:44:39 PM »
QUOTE
just not sure how I'd make it work on only 1 site
That's the biggest drawback. It can probably be done with a bit of javascript, if you have that enabled. It might also be possible to use the site's CSS to see where they are setting that color. If it is a uniquely named definition, you could probably just use it again on your personal CSS file and just change the background color (and probably text, also). You can view source and see how they are using CSS (in the page itself or from an external file, hopefully not in each line of html! rolleyes.gif ). Of course, if they did it as I did, above, it will not be unique at all and would affect practically 100% of any site you visit.

Maybe a better alternative and probably more difficult, would be to write an Automator action or even an AppleScript. Saved as an app, it could reside on your Desktop or the Dock and you could run it only when you visited that site. A similar script could then be used when you surf the other 99.999999999999% of the web...it must be a pretty special site to consider jumping through all these hoops! dntknw.gif
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system
CAUTION! Childhood vaccinations cause adults! :yes:

Offline jcarter

  • TS Addict
  • *****
  • Posts: 5808
    • View Profile
    • http://www.jcarter.net/ourdogs/muffinpage.html
Changing the color of a site I visit
« Reply #8 on: November 04, 2010, 06:40:57 PM »
Hold down control, option, command and hit 8 on the top and you have it inverted.
But its very interesting to read the other options here, this is fun!
Jane