Opera Tutorial/Step-By-Step?

edited February 2009 in userstyles.org
I was wondering if there was tutorial, to help me use userstyles with Opera. I've seen a few tutorials but none dealing with these specifically. I really like these styles and I want to get them working. Help?


  • you probably already know this part, but in opera you can rightclick on a page>edit site preferences>display>my style sheet. that allows you to set a different style for each domain (not sure how it works for subdomains)

    all the website styles should look something like so
    @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("example.com"){ /*some rules*/ sdfhkjsdhf{sadsa:sadsa!important} } /*some also have more then @-moz-doc section (i think that's what it's called). those will be trickier to deal with*/ @-moz-document url-prefix("http://example.com/somesection"){ /*rules for /somesection*/ sdfadsf{sdfsdf:sdfsd!important} }
    basically you need to remove
    @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("example.com"){and the closing bracket
    }than you just need to stick it in a file and change that "my style sheet" option in opera to use the new file

    now for multiple @-moz-docs, if it uses the /somesection in the example you'd need to goto that page and see if maybe there's something different added to the body or another parent and change the rule
    say the body on the main page has a class of "news" and on /somesection it has a class of "somesection"
    you'd change the example rule from
    body[class="somesection"] sdfadsf{sdfsdf:sdfsd!important}of course it isn't always that easy and sometimes there's nothing to use (then again opera may have something like @-moz-doc, but i wouldn't know)
Sign In or Register to comment.