Can I change the font for a specific site?

View: New views
2 Messages — Rating Filter:   Alert me  

Can I change the font for a specific site?

by Water Lin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


While I am exploring some sites in my Conkeror, the font size is too
small and makes my eyes very tired. Is there a way to set the font size
of this specific site?

Thanks

--
Water Lin's blog: http://blog.waterlin.org
Email: WaterLin@...
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

Re: Can I change the font for a specific site?

by John J. Foerch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Sep 25, 2009 at 11:11:35AM +0800, Water Lin wrote:
>
> While I am exploring some sites in my Conkeror, the font size is too
> small and makes my eyes very tired. Is there a way to set the font size
> of this specific site?
>
> Thanks


Hi Water,

  You can do this with css.  Here is an example from my .conkerorrc, in
which I use css to change the appearance of a particular website:


// make the nasa-hsf-sightings page more printer friendly
register_user_stylesheet(
    "data:text/css," +
        escape (
            "@-moz-document url-prefix("+
                "http://spaceflight1.nasa.gov/realdata/sightings/cities/view.cgi)"+
                "{img { display: none; }}"));


  Note, I used a data: url to encode the css directly into my rc, which is
convenient for short snippets like this.  However, you can also put your
css in a file, and pass a file: url to register_user_stylesheet.

  You may also need to mark your css rules as !important, depending on the
particulars of the website's stylesheets.

--
John Foerch
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror