22 June 2010

Safari Reader customization - sans-serif font

Safari 5's Reader is incredibly cool.
You can customize Safari Reader output by editing "Reader.html" file at "/Applications/Safari.app/Contents/Resources/" folder.
This is the way to change the type face from serif to sans-serif both at title and body.
  • The line 7 of Reader.html begins with "<style ". Insert following after the line 7;
    * { font-family: sans-serif !important; }
Technically, the key for this is style prioritization specification: "!important".
Most of the parts of Safari Reader output is based on Reader.html styles, but body paragraphs are overridden by hard-coded Safari output.

Please enjoy.
Do not forget to backup before make modification to your system.

[Japanese version]

No comments:

Post a Comment