|
|
Modify the look of the Safari 5 Reader function
Of course, modifying any files inside the application package will invalidate the application signature and affect Safari's use of the keychain. This is best addressed via the new extension mechanism.
Modify the look of the Safari 5 Reader function
I would think it would be possible. I might give it a try later and see what happens. Edited on Jun 09, '10 12:18:53PM by leamanc
Modify the look of the Safari 5 Reader function
Is this the case? Does editing this CSS file screw up Keychain access? Can someone please confirm this? i really want to try this hint but don't want to mess with Safari's signature.
Modify the look of the Safari 5 Reader function
Perfectly easy to override the style in the reader using a user style sheet. No need to hack into application bundle (because that will get overridden with Safari updates). The trick is getting a higher specificity score than what's in the reader's stylesheet. For example. I wrote a simple "reader.css" file to point at with Safari's advanced settings in prefs (Advanced > Style Sheet). They style in question to override in reader's style sheet is ".page" (worth "0,0,10,0" in specificity), So I simply need to write a style for "html .page" and that will have higher specificity (0,0,10,1). I tried it and it worked flawlessly and I was able to do it without even restarting or quitting Safari. Here was the style I used: html .page { text-align: inherit; }
Modify the look of the Safari 5 Reader function
Okay, I replied earlier about user style sheets, but my comment in stuck in moderation. I was wrong. You cannot use the user stylesheet to override the style (even if you pull out the draconian !important).
Inline CSS Styles
Doing some inspection shows that Reader’s CSS styling is actually applied as inline styles, presumably copied from the CSS file in the app bundle. Therefore, changing that CSS file changes what ends up in Reader, but user stylesheets won’t since inline styles have priority (even with the dread !important) over user stylesheets.
Modify the look of the Safari 5 Reader function
Sadly, it looks like extensions aren’t loaded into safari-resource URLs (which is apparently what Safari is using to load the Reader sources). IIRC file URLs are treated the same way. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|