webkit - Is there a way to have a CSS selector apply to a specific host? (For my custom browser stylesheet.) -


I want to apply the styles ( edit: in my user-defined stylesheet browser, on my machine How do a local file give me other people's websites on a specific site, I customize it ), but selectors on many web pages are often normal (and obviously outside of my control because they are my No website Yes.)

If I want to use very general selectors (eg # box) to customize a particular website, that style may inadvertently affect other websites whose only common selector it occurs. Is there a way to specify a domain with the selector so that I can separate my custom style for each website?

I also found that what looks good, but Mozilla-specific and I use a webkit browser. Is there an equivalent?

  @ -moz-document url (https://www.example.com/decrypt.php) {   

Is CSS hosted on a server which also allows you to script? Have you tried to write server-side scripts to prepare the right CSS rules based on the host? Page

Edit on March 30, 2010:

You can do better by using the Greasemonkey extension to compare it with user-defined stylesheets. It's far more powerful because you can use JavaScript, and adding domain or page-specific rules is easy to add special tags for comments in the header. Greasemonkey was specially designed to handle your type of problem, and when you need a plugin to run Greasemonkey script in Firefox, Chrome builds Greasemonkey support with the ship.

Comments