<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brett Terpstrareader - Brett Terpstra</title>
	<atom:link href="http://brettterpstra.com/tag/reader/feed/" rel="self" type="application/rss+xml" />
	<link>http://brettterpstra.com</link>
	<description>Elegant solutions to complex problems.</description>
	<lastBuildDate>Thu, 09 Feb 2012 15:01:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Antique is back, baby</title>
		<link>http://brettterpstra.com/antique-is-back-baby/</link>
		<comments>http://brettterpstra.com/antique-is-back-baby/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 17:56:48 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[antique]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://brettterpstra.com/?p=2569</guid>
		<description><![CDATA[<p>Thanks to a pointer from Jeremy Lu, I’ve got the Antique Safari Reader hack running in Safari 5.1. I can’t begin to tell you how much I’d missed it since updating to Lion. I’ve updated the instructions page to include the Lion location of Reader.html. The file is now located at /System/Library/PrivateFrameworks/Safari.framework/Versions/A/Resources/Reader.html. A quick locate command would have told me&#8230;</p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/antique-is-back-baby/">Antique is back, baby</a></p>]]></description>
			<content:encoded><![CDATA[<p>Thanks to a pointer from Jeremy Lu, I’ve got the Antique Safari Reader hack running in Safari 5.1. I can’t begin to tell you how much I’d missed it since updating to Lion. I’ve updated the <a href="http://brettterpstra.com/howtos/install-a-safari-reader-hack/">instructions page</a> to include the Lion location of Reader.html.</p>

<p>The file is now located at <code>/System/Library/PrivateFrameworks/Safari.framework/Versions/A/Resources/Reader.html</code>. A quick <code>locate</code> command would have told me that, but I didn’t think to look outside of the application bundle for it. Thanks, Jeremy.</p>

<p>Antique is still at version 1.6, but I may do some updating now that it’s back in action. Download below.</p>

<div class="download_desc"><p class="download-icon"><a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Download Antique 1.6 for Safari Reader (4517)"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/downloads/thumbnails/2010/11/safariiconantiqued.png?9d7bd4" alt="download image for Antique 1.6 for Safari Reader" width="64" /></a><br /><a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Download Antique 1.6 for Safari Reader (4517)" class="download-button">Download</a></p><p class="desc"><a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Download Antique 1.6 for Safari Reader (4517)">Antique 1.6 for Safari Reader</a> — Version 1.6 of the Antique hack for Safari 5. Adds pleasant styling to Reader, with many additional features. <a href="http://brettterpstra.com/2010/06/17/antique-1-6-final-release/">More Info</a></p></div>
<p>Related posts:<ol>
<li><a href='http://brettterpstra.com/antique-on-pimpmysafari-com/' rel='bookmark' title='Antique on PimpMySafari.com'>Antique on PimpMySafari.com</a></li>
<li><a href='http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/' rel='bookmark' title='Antique Safari Reader hack update with Evernote goodness'>Antique Safari Reader hack update with Evernote goodness</a></li>
<li><a href='http://brettterpstra.com/antique-1-6-final-release/' rel='bookmark' title='Antique 1.6, final release'>Antique 1.6, final release</a></li>
</ol></p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/antique-is-back-baby/">Antique is back, baby</a></p>]]></content:encoded>
			<wfw:commentRss>http://brettterpstra.com/antique-is-back-baby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Antique 1.6, final release</title>
		<link>http://brettterpstra.com/antique-1-6-final-release/</link>
		<comments>http://brettterpstra.com/antique-1-6-final-release/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 15:24:57 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[antique]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[safari 5]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[widont]]></category>

		<guid isPermaLink="false">http://brettterpstra.com/?p=624</guid>
		<description><![CDATA[<p>"Antique" hack for Safari 5's Reader feature. Adds an antiqued theme and several new functions for typography, image handling and send-to applications.</p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/antique-1-6-final-release/">Antique 1.6, final release</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/AntiqueImageLinking.jpg?9d7bd4"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  src="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/AntiqueImageLinking-150x150.jpg?9d7bd4" alt="" title="AntiqueImageLinking" width="150" height="150" class="alignright size-thumbnail wp-image-628" /></a></p>

<p><strong>For a quick “how-to” on using the Antique (or any) Safari Reader hack, see the <a href="http://brettterpstra.com/howtos/install-a-safari-reader-hack/">related article</a> in the <a href="http://brettterpstra.com/howtos/">HowTo section</a>.</strong></p>

<p>This will be the last release of Antique, I think, barring a few minor fixes (follow <a href="http://twitter.com/ttscoff">@ttscoff</a> for updates on this and other projects). You can download it <a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Antique Reader 1.6">here</a>. The code is completely open source, if anyone wants to continue the project feel free (credit would be swell, where it’s due). I’ll be putting my free time into <a href="http://brettterpstra.com/2010/06/09/instapaper-beyond-for-safari/">Instapaper Beyond</a> and other more “legitimate” projects now (although I really would like to do a nice, high-contrast, Helvetica version…). In deference to <a href="http://farukat.es/journal/2010/06/456-stop-hacking-safari-reader">Faruk Ateş</a>, I’d like to clearly state that this <em>is</em> a hack, and you run a risk (albeit very minimal) of breaking your Safari install if you don’t know what you’re doing. I also won’t be posting further simplified instructions for installation, but they’re not hard to find. For advanced users, you simply need to know that you’re replacing <code>Reader.html</code> in <code>Contents/Resources</code>.</p>

<p><a href="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/AntiqueHeadlineSplit.jpg?9d7bd4"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  src="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/AntiqueHeadlineSplit-150x150.jpg?9d7bd4" alt="" title="AntiqueHeadlineSplit" width="150" height="150" class="alignright size-thumbnail wp-image-627" /></a></p>

<p>The coolest changes, in my opinion, are an <strong>amped-up Widon’t</strong> for headlines, and <strong>improved image linking</strong>. On the Widon’t end, if a title exceeds the width of the headline area, it’s actually split in the middle to provide more equal-length lines. It’s neat-o. And for the images: I had it only lightboxing images which were too large for the style and which <em>weren’t</em> already linked somewhere else, resulting in the user never knowing what would happen when they clicked an image. Now, if an image is linked to an external site, that link is extracted and placed on a line below the image. If an alt or title attribute are present in the image or the link, they’re preferred over the source attribute for naming the link, which should provide a decent idea of where you’re going, in most cases. Images which are linked, then, are always linked to the Colorbox effect, and will never take you out of the Reader page. Ah, consistency.</p>

<p>Here’s what else is new in this version.</p>

<ul>
<li>I swapped out the scrollbar images, shifted the colors a little, and included them in the HTML file.</li>
<li>Some style changes, including a darker background and slightly heavier gradient</li>
<li>Massively fixed up the <a href="http://brettterpstra.com/2010/06/14/ampersands-javascript/">ampersand code</a>. Also shifted ampersands 1 pixel left for better kerning within non-italicized text.</li>
<li>Improved smashing of empty paragraphs in bad markup to avoid huge spaces between paragraphs.</li>
<li>Fixed a CSS mistake I had introduced which caused the background and drop shadow to be visible before the content slid up from the bottom.</li>
<li>Set up an onscroll check for new elements. Every time the page is scrolled, Antique checks for new elements (i.e. additional pages that were inserted after initial load) and applies the default functions to them.</li>
<li>did I mention 12px Droid Sans Mono for code blocks? 12px seems reasonable, and doesn’t change when zooming/shrinking the rest of the text.</li>
</ul>

<!-- more -->

<p>Are there too many buttons in the HUD for your taste? They’re there as an example, but you can remove them easily by commenting out the “button” lines at the bottom of the Reader.html file. The HUD will adjust size and position automatically based on the number of buttons you have in there, so just remove the ones that aren’t of use to you.</p>

<p>If you’re playing with Reader styles, here’s a tip: you can set up a “sandbox” page to speed up development (at least with css). Once Reader has loaded a page that has elements you want to style, right click and choose “Inspect Element” (obviously, you have to have the developer menu enabled in preferences). Then, right click on the doctype declaration in the element inspector and choose “Copy as HTML.” That will give you the full HTML of the <em>rendered</em> document, which you can save to a new HTML file. Extract the inline stylesheets and link them into external stylesheets, and you can edit in CSSEdit or Firebug. It’s handy, given that, in order to change the live styles, you have to restart Safari every time you edit Reader.html.</p>

<p>I had started working on smart quotes and other javascript-based typography changes, but decided it wasn’t worth the time to try to come up with regular expressions that covered every possible circumstance. If anyone wants to pick up where I left off, I’d love to see what you come up with.</p>

<p><strong>For a quick “how-to” on using the Antique (or any) Safari Reader hack, see the <a href="http://brettterpstra.com/howtos/install-a-safari-reader-hack/">related article</a> in the <a href="http://brettterpstra.com/howtos/">HowTo section</a>.</strong></p>

<div class="download_desc"><p class="download-icon"><a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Download Antique 1.6 for Safari Reader (4517)"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/downloads/thumbnails/2010/11/safariiconantiqued.png?9d7bd4" alt="download image for Antique 1.6 for Safari Reader" width="64" /></a><br /><a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Download Antique 1.6 for Safari Reader (4517)" class="download-button">Download</a></p><p class="desc"><a href="http://brettterpstra.com/downloads/Antique1.6.zip?9d7bd4" title="Download Antique 1.6 for Safari Reader (4517)">Antique 1.6 for Safari Reader</a> — Version 1.6 of the Antique hack for Safari 5. Adds pleasant styling to Reader, with many additional features. <a href="http://brettterpstra.com/2010/06/17/antique-1-6-final-release/">More Info</a></p></div>

<hr />
<p>Related posts:<ol>
<li><a href='http://brettterpstra.com/antique-is-back-baby/' rel='bookmark' title='Antique is back, baby'>Antique is back, baby</a></li>
<li><a href='http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/' rel='bookmark' title='Antique Safari Reader hack update with Evernote goodness'>Antique Safari Reader hack update with Evernote goodness</a></li>
<li><a href='http://brettterpstra.com/safari-reader-antique-hack/' rel='bookmark' title='Safari Reader Antique hack'>Safari Reader Antique hack</a></li>
</ol></p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/antique-1-6-final-release/">Antique 1.6, final release</a></p>]]></content:encoded>
			<wfw:commentRss>http://brettterpstra.com/antique-1-6-final-release/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Antique Safari Reader hack update with Evernote goodness</title>
		<link>http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/</link>
		<comments>http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 11:45:27 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[evernote]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://brettterpstra.com/?p=585</guid>
		<description><![CDATA[<p>I updated the links and information on the main post, but I thought I’d put a little ping out there for RSS readers who might want to upgrade: Evernote web clipper functionality is now complete in the style, and the button in the HUD will open the floating frame, let you add tags and extra text, then clip just the&#8230;</p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/">Antique Safari Reader hack update with Evernote goodness</a></p>]]></description>
			<content:encoded><![CDATA[<p>I updated the links and information on the <a href="http://brettterpstra.com/2010/06/12/safari-reader-antique-hack/">main post</a>, but I thought I’d put a little ping out there for RSS readers who might want to upgrade:</p>

<p>Evernote web clipper functionality is now complete in the style, and the button in the HUD will open the floating frame, let you add tags and extra text, then clip just the visible text in Reader to your main Evernote notebook without ever opening a new page. Exactly what I wanted. Now I just have to add the same thing to Instapaper Beyond!</p>

<p>The style is also now available with and without background images, just <a href="http://brettterpstra.com/2010/06/12/safari-reader-antique-hack/">check the main post</a> for updates.</p>

<div class="download_desc"><p class="download-icon"><a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4" title="Download Antique Safari Reader style (2428)"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/downloads/thumbnails/2010/11/safariiconantiqued.png?9d7bd4" alt="download image for Antique Safari Reader style" width="64" /></a><br /><a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4" title="Download Antique Safari Reader style (2428)" class="download-button">Download</a></p><p class="desc"><a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4" title="Download Antique Safari Reader style (2428)">Antique Safari Reader style</a> — Custom style (hack) for Safari 5\‘s Reader feature. Antique styling/colors with a few nifty features. Now with a fully-functional Evernote clipper. If you don’t want a background image, see the other available download. <a href="http://brettterpstra.com/2010/06/12/safari-reader-antique-hack/">More Info</a></p></div>

<div class="download_desc"><p class="download-icon"><a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4" title="Download Antique Safari Reader Style (no background image) (1244)"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/downloads/thumbnails/2010/11/safariiconantiqued.png?9d7bd4" alt="download image for Antique Safari Reader Style (no background image)" width="64" /></a><br /><a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4" title="Download Antique Safari Reader Style (no background image) (1244)" class="download-button">Download</a></p><p class="desc"><a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4" title="Download Antique Safari Reader Style (no background image) (1244)">Antique Safari Reader Style (no background image)</a> — Same as the Safari Reader Antique hack, but without the slightly-over-the-top background image. Now with a fully-functional Evernote clipper. <a href="http://brettterpstra.com/2010/06/12/safari-reader-antique-hack/">More Info</a></p></div>

<hr />
<p>Related posts:<ol>
<li><a href='http://brettterpstra.com/safari-reader-antique-hack/' rel='bookmark' title='Safari Reader Antique hack'>Safari Reader Antique hack</a></li>
<li><a href='http://brettterpstra.com/antique-1-5-for-safari-reader/' rel='bookmark' title='Antique 1.5 for Safari Reader'>Antique 1.5 for Safari Reader</a></li>
<li><a href='http://brettterpstra.com/taking-the-markdown-to-evernote-service-further/' rel='bookmark' title='Taking the Markdown to Evernote service further'>Taking the Markdown to Evernote service further</a></li>
</ol></p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/">Antique Safari Reader hack update with Evernote goodness</a></p>]]></content:encoded>
			<wfw:commentRss>http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari Reader Antique hack</title>
		<link>http://brettterpstra.com/safari-reader-antique-hack/</link>
		<comments>http://brettterpstra.com/safari-reader-antique-hack/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 05:12:21 +0000</pubDate>
		<dc:creator>Brett</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[safari 5]]></category>

		<guid isPermaLink="false">http://brettterpstra.com/?p=562</guid>
		<description><![CDATA[<p>There is a new version of Antique available! Check out version 1.6! I was thrilled when it was first announced that someone had located the HTML/CSS for the new Safari Reader functionality in Safari 5, which happened the day it was released. I’ve been toying around with some ideas in the days since, and this hack is the result of&#8230;</p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/safari-reader-antique-hack/">Safari Reader Antique hack</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/SafariReaderNewFullFrame_1024.jpg?9d7bd4"><img style=' float: right; padding: 4px; margin: 0 0 2px 7px;'  src="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/SafariReaderNewFullFrame_1024-300x219.jpg?9d7bd4" alt="Safari Reader Antique hack" title="Safari Reader Antique hack" width="300" height="219" class="alignright size-medium wp-image-565" /></a></p>

<p><strong>There is a new version of Antique available! <a href="http://brettterpstra.com/2010/06/17/antique-1-6-final-release/">Check out version 1.6</a>!</strong></p>

<p>I was thrilled when it was first announced that someone had located the HTML/CSS for the new Safari Reader functionality in Safari 5, which happened the day it was released. I’ve been toying around with some ideas in the days since, and this hack is the result of a little too much effort. Click the screenshot thumbnail to see a full version.</p>

<p>It has a few interesting components…</p>

<p><span id="more-562"></span></p>

<ul>
<li>Uses CSS3 to find doubleclick.net ads, which Reader sometimes misses because they inject after the DOM loads</li>
<li>Uses CSS3 to remove blank paragraphs and paragraphs containing nothing but a line break tag</li>
<li>It only shows the title once, as opposed to at the top of every page</li>
<li>Many style changes, including:

<ul>
<li>uses Google fonts (Crimson Text) </li>
<li>“antique” color palette, which extends to the background and HUD</li>
<li>less-contrasty links, easier to read over but still noticeable</li>
<li>slight gradient in the background</li>
</ul></li>
<li>Extra button in the HUD (Evernote, experimental)</li>
<li>Narrower scrollbar</li>
<li>Left-justified text</li>
<li><del datetime="2010-06-12T10:07:03+00:00">Currently attempting to resize images to max-width 300px (but it’s not resizing properly if width/height attributes are set. I’ll fix that shortly.)</del></li>
<li><ins datetime="2010-06-12T10:07:03+00:00"><strong>Update:</strong> using a little Javascript now to resize the images proportionally after page load.</li>
<li>Adds dashed line indicating page breaks, lightens and shrinks page numbers</li>
<li><strong>Update:</strong> added a background image. Let me know what you think.

<ul>
<li><strong>Update to update:</strong> there’s a second download link without the background image.</li>
</ul></li>
</ul>

<div id="attachment_563" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/SafariNewFullFramePageBreak.jpg?9d7bd4"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/SafariNewFullFramePageBreak-300x70.jpg?9d7bd4" alt="Safari Reader Antique hack page break closeup" title="Safari Reader Antique hack page break closeup" width="300" height="70" class="size-medium wp-image-563" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Page break closeup</p></div>

<p>If you want to try out the style, <a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4">download it here</a> (with background image), or grab the <a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4">version with no background image</a>, and open the archive. Inside you’ll find a file called Reader.html. The file you’re going to replace (back it up somewhere safe first) is <code>/Applications/Safari.app/Contents/Resources/Reader.html</code>. If you don’t know how to do this from Terminal, you can just do it in Finder: go to your Applications folder and locate Safari, then right click on it and choose “Show Package Contents.” That will open a new window with the inner workings of Safari inside it. Open the folder called Contents, and then the Resources folder inside of that. Locate the file Reader.html and drag it out to your desktop (that’s your original, keep it safe). Then drag the new Reader.html file you downloaded into the Resources folder. Restart Safari and try it out!</p>

<p>Some gory details about the process follow…</p>

<div id="attachment_566" class="wp-caption aligncenter" style="width: 420px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/SafariReaderNewFullFrameHUD.jpg?9d7bd4" alt="Safari Reader Antique hack HUD" title="Safari Reader HUD" width="410" height="119" class="size-full wp-image-566" /><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Antique HUD with Evernote button</p></div>

<p>I added a button to the HUD as a proof-of-concept. It doesn’t do anything very useful yet, the current one just loads the title and URL in the Evernote web clipper in a new tab/window. It would be far more useful if I could get the in-page web clipper to work, but when Reader loads, “Reader.html” becomes the current location and title. You can access the original information using the ReaderJS object (<code>ReaderJS.originalURL</code> for example), but Evernote’s web clipper doesn’t let you pass those in, it wants to find them itself. I played around with loading the entire contents of the Reader-rendered page into an iFrame and calling it from there, but I gave up on that after a while. The default print and email functions have success doing something similar; it’s more the Evernote clipper that’s dragging me down. Anyway, you can add Javascript right in the Reader.html file and insert a button to call it. It’s easy.</p>

<p><strong>Update:</strong> I figured it out. I had to dupe Evernote’s injected javascript, edit it to use the ReaderJS object that Safari provides for getting the original url and title, then compress and include it in the Reader.html file. It should be fully functional now: pops up the hovering frame and lets you add tags and notes, clips just what Reader is showing using Reader styles (no cleanup necessary in Evernote!) and sends it to your main notebook without opening a new window. If you’re not an Evernote user, you can remove the button just by locating it near the bottom of Reader.html in the body portion. It’s clearly labeled. You’d also want to narrow the HUD back down, so look at the #HUD style and set the width appropriately.</p>

<p>All external images used in the style are base64-encoded and included in the html file, so there are no extra files to mess with. The Google fonts are loaded directly from Google’s website, so reading offline would provide a different look, but who reads web pages in Safari when they’re offline, really? Using Google’s Ajax API’s, you can also easily inject jQuery into the mix, <del datetime="2010-06-12T21:15:52+00:00">but I haven’t found anything really useful to do with it yet.</del> <ins datetime="2010-06-12T21:15:52+00:00">Actually, I just hacked in <a href="http://colorpowered.com/colorbox/">Colorbox</a> and improved image resizing with some jQuery… it’s definitely going to be in the next release.</ins></p>

<p>So, that’s the story. I’m sure I’ll have completely revamped this by the end of the weekend, but it’s at a good place right now. Here’s the download link again: <a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4">Antique Style</a> (and with <a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4">no background image</a>). Also, I got bored with looking at this style at one point, and decided to make a <a href="http://www.tuaw.com">TUAW</a> style, just for giggles. If you’re curious what the whole web would look like through a TUAW lens (<a href="http://cdn2.brettterpstra.com/wp-content/uploads/2010/06/TUAWReader.jpg?9d7bd4">preview</a>), you can try <a href="http://brettterpstra.com/downloads/TUAWReader.zip?9d7bd4">that one</a> out too. As always, have fun.</p>

<p><strong>There is a new version of Antique available! <a href="http://brettterpstra.com/2010/06/17/antique-1-6-final-release/">Check out version 1.6</a>!</strong></p>

<div class="download_desc"><p class="download-icon"><a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4" title="Download Antique Safari Reader style (2428)"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/downloads/thumbnails/2010/11/safariiconantiqued.png?9d7bd4" alt="download image for Antique Safari Reader style" width="64" /></a><br /><a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4" title="Download Antique Safari Reader style (2428)" class="download-button">Download</a></p><p class="desc"><a href="http://brettterpstra.com/downloads/AntiqueWBackground.zip?9d7bd4" title="Download Antique Safari Reader style (2428)">Antique Safari Reader style</a> — Custom style (hack) for Safari 5\‘s Reader feature. Antique styling/colors with a few nifty features. Now with a fully-functional Evernote clipper. If you don’t want a background image, see the other available download. <a href="http://brettterpstra.com/2010/06/12/safari-reader-antique-hack/">More Info</a></p></div>

<div class="download_desc"><p class="download-icon"><a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4" title="Download Antique Safari Reader Style (no background image) (1244)"><img src="http://cdn2.brettterpstra.com/wp-content/uploads/downloads/thumbnails/2010/11/safariiconantiqued.png?9d7bd4" alt="download image for Antique Safari Reader Style (no background image)" width="64" /></a><br /><a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4" title="Download Antique Safari Reader Style (no background image) (1244)" class="download-button">Download</a></p><p class="desc"><a href="http://brettterpstra.com/downloads/AntiqueNoBG.zip?9d7bd4" title="Download Antique Safari Reader Style (no background image) (1244)">Antique Safari Reader Style (no background image)</a> — Same as the Safari Reader Antique hack, but without the slightly-over-the-top background image. Now with a fully-functional Evernote clipper. <a href="http://brettterpstra.com/2010/06/12/safari-reader-antique-hack/">More Info</a></p></div>

<p><em>Addendum:</em> <del datetime="2010-06-12T21:15:52+00:00">I’ve realized it would be entirely possible to add my own HUD with various style selectors and just switch out stylesheets with Javascript. Expect the next Reader hack I release to be a multi-theme bundle of fun.</del> <ins datetime="2010-06-12T21:15:52+00:00">I’ve had to scratch this plan for lack of cross-domain local storage for preferences. I can’t access the safari.extension API from the Reader.html file, and I can’t store a cookie because once Reader loads there’s no domain to attach to. If anyone has a good idea that doesn’t involve complicated installs, let me know! In the meantime, I’m beginning work on a web tool reminiscent of <a href="http://lab.arc90.com/experiments/readability/">Arc90’s</a>. It will take your choices of fonts, colors and backgrounds and generate a ready-to-install Reader.html file for you. Not sure how soon I’ll get it done, but be sure to <a href="http://twitter.com/ttscoff">follow me on Twitter</a> and/or subscribe to <a href="http://feeds.feedburner.com/BrettTerpstra">the RSS feed</a> for updates.</ins></p>
<p>Related posts:<ol>
<li><a href='http://brettterpstra.com/antique-safari-reader-hack-update-with-evernote-goodness/' rel='bookmark' title='Antique Safari Reader hack update with Evernote goodness'>Antique Safari Reader hack update with Evernote goodness</a></li>
<li><a href='http://brettterpstra.com/antique-is-back-baby/' rel='bookmark' title='Antique is back, baby'>Antique is back, baby</a></li>
<li><a href='http://brettterpstra.com/antique-1-5-for-safari-reader/' rel='bookmark' title='Antique 1.5 for Safari Reader'>Antique 1.5 for Safari Reader</a></li>
</ol></p><p>Originally posted on <a href="http://brettterpstra.com" title="BrettTerpstra.com">BrettTerpstra.com</a> at <a href="http://brettterpstra.com/safari-reader-antique-hack/">Safari Reader Antique hack</a></p>]]></content:encoded>
			<wfw:commentRss>http://brettterpstra.com/safari-reader-antique-hack/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 12/66 queries in 0.272 seconds using xcache
Object Caching 1556/1618 objects using xcache
Content Delivery Network via cdn2.brettterpstra.com

Served from: brettterpstra.com @ 2012-02-09 17:23:17 -->
