0

my question is pretty much direct.

i just want to customize the css of a site that im accessing from my local PC(currently using firebug to change it temporarily).

i want to load an extra css file for that website(only on my PC).

i been wondering about this for long, do you have any idea how can this be achieved?

for example if the site has a code:

body{
   background:blue;
}

i want it to use:

body{
   background:red !important;
}

every-time i load that website.

3
  • 1
    There are browser extensions for this purpose Commented May 14, 2014 at 2:14
  • addons.mozilla.org/en-US/firefox/addon/greasemonkey Commented May 14, 2014 at 2:19
  • You could always use PHP's if($_SERVER['SERVER_NAME'] === '127.0.0.1'){echo "@import 'custompage.css';"}. Of course, you would echo this inside of a <style type='text/css'></style> tag. Commented May 14, 2014 at 2:38

3 Answers 3

1

If you have Google Chrome or Mozilla Firefox, then you can use Stylish. It's an extension for both. It may be under the name 'UserStyles' as well. It's relatively simple to use; you just need to install it and add in your personal styles.
Chrome Version
Firefox Version

Sign up to request clarification or add additional context in comments.

Comments

1

Use an extensions like stylish or userscript/greasemonkey

Comments

1

You should be able to accomplish something like this with a browser extension. Search for 'browser extension' along with the browser you want to implement it for.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.