I am looking for a Safari extension that allows me to change any CSS on any website.

The things I want to do is change the white background to black and the black text to white, I also want the links to be green.

Is there a extension that allows me to do this?

This is the OS X safari and not iOS.

I have looked at this one but don't know how to use it.



You don’t even need an extension; Safari has a built in setting in the advanced settings to use a custom CSS for all webpages:

Safari settings

You need to create your own CSS file, but that’s a completely different beast. Something that will work nice on some pages might not on others, but I’d create a file named whatever.css and have it contain something like this:

* {
    color: #ffffff !important;
    background: #000000 !important;
a {
    color: #00ff00 !important;

and then load it into Safari via the preferences. To reload any changes to the CSS while Safari is open, you need to select None Selected and then re-select your custom file.

You’ll probably find lots of people on the web that have put lots of effort into similar CSS files. Good luck!


  • 1
    Thanks, Can I make different CSS styles for different websites and pages using this method? Also is there a way how to change all elements apart from one? (Such as the toolbar on AD) – iProgram Mar 15 '15 at 17:43
  • I don’t know. Unless there’s some way to do it using CSS syntax that I’m not aware of, I don’t think so. That would be the caveat. You could have several CSS files and switch between them for different pages, I guess… – user118108 Mar 15 '15 at 17:48
  • I may change the style on every element and then change the other ones separately. How would I set the background of the toolbar on AD to white + the text black? I also want to be able to see the up/down vote and accept buttons. – iProgram Mar 15 '15 at 17:54
  • 1
    I did not know you could use wildcard * {} cheers – markhunte Mar 15 '15 at 19:17
  • User CSS will do per-website CSS. The extension is a little bit dated, but works for the version 8 and 9 of Safari. – sillygwailo Oct 7 '15 at 21:03

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.