<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Safari Link Exposer</title>
	<atom:link href="http://www.red-sweater.com/blog/498/safari-link-exposer/feed" rel="self" type="application/rss+xml" />
	<link>http://www.red-sweater.com/blog/498/safari-link-exposer</link>
	<description>Mac &#38; Technology Writings by Daniel Jalkut</description>
	<lastBuildDate>Wed, 18 Jan 2012 18:10:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Patrick</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136986</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Sat, 14 Jun 2008 10:20:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136986</guid>
		<description>Thank you so much for this handy little script.</description>
		<content:encoded><![CDATA[<p>Thank you so much for this handy little script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136593</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Tue, 13 May 2008 22:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136593</guid>
		<description>Dori - that is pretty neat. This CSS selector stuff is all new to me so it&#039;s kind of brain bending. But I guess what you&#039;re doing is leveraging the CSS system&#039;s ability to apply it dynamically to all the affected elements, instead of laboriously going through and searching as mine does.

The biggest benefit of the laborious method seems to be in the flexibility of what constitutes a &quot;match,&quot; and in being able to easily affect neighboring or parent nodes in the tree.</description>
		<content:encoded><![CDATA[<p>Dori &#8211; that is pretty neat. This CSS selector stuff is all new to me so it&#8217;s kind of brain bending. But I guess what you&#8217;re doing is leveraging the CSS system&#8217;s ability to apply it dynamically to all the affected elements, instead of laboriously going through and searching as mine does.</p>
<p>The biggest benefit of the laborious method seems to be in the flexibility of what constitutes a &#8220;match,&#8221; and in being able to easily affect neighboring or parent nodes in the tree.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136592</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Tue, 13 May 2008 21:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136592</guid>
		<description>Dori&#039;s comment was getting munged by my blog.  I fixed it in the original - I think I got it right.  This is the second one that&#039;s needed manual fixing - obviously my live preview plugin or wordpress has some bugs!</description>
		<content:encoded><![CDATA[<p>Dori&#8217;s comment was getting munged by my blog.  I fixed it in the original &#8211; I think I got it right.  This is the second one that&#8217;s needed manual fixing &#8211; obviously my live preview plugin or wordpress has some bugs!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dori</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136589</link>
		<dc:creator>Dori</dc:creator>
		<pubDate>Tue, 13 May 2008 21:27:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136589</guid>
		<description>Hmmm... this turned into an interesting challenge. How to make this a bookmarklet that sets a style, using partial selectors?

&lt;a href=&quot;javascript:(function(){var myDomain=%27backupbrain%27,newSS,styles=%27a[href^=%22http://www.%27+myDomain+%27.com%22]{background-color:#F00 !important;color:%23FFF !important;}%27;newSS=document.createElement(%27link%27);newSS.rel=%27stylesheet%27; newSS.href=%27data:text/css,%27+escape(styles);document.documentElement.childNodes[0].appendChild(newSS);})();&quot; rel=&quot;nofollow&quot;&gt;Highlight Links&lt;/a&gt;

See how that works for you (remember to change the value of the myDomain variable at the beginning!).</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; this turned into an interesting challenge. How to make this a bookmarklet that sets a style, using partial selectors?</p>
<p><a href="javascript:(function(){var myDomain=%27backupbrain%27,newSS,styles=%27a[href^=%22http://www.%27+myDomain+%27.com%22]{background-color:#F00 !important;color:%23FFF !important;}%27;newSS=document.createElement(%27link%27);newSS.rel=%27stylesheet%27; newSS.href=%27data:text/css,%27+escape(styles);document.documentElement.childNodes[0].appendChild(newSS);})();" rel="nofollow">Highlight Links</a></p>
<p>See how that works for you (remember to change the value of the myDomain variable at the beginning!).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssp</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136588</link>
		<dc:creator>ssp</dc:creator>
		<pubDate>Tue, 13 May 2008 20:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136588</guid>
		<description>The CSS I&#039;m using is pretty much the same CSS Ross posted:

/*********** VANITY ***************/
a[href*=&quot;earthlingsoft.net/&quot;]
{
	background-color: yellow !important;
}

It doesn&#039;t make things prettier, but when I have to choose between a beauty contest and quick access to the info I&#039;m interested in, the latter always wins.</description>
		<content:encoded><![CDATA[<p>The CSS I&#8217;m using is pretty much the same CSS Ross posted:</p>
<p>/*********** VANITY ***************/<br />
a[href*="earthlingsoft.net/"]<br />
{<br />
	background-color: yellow !important;<br />
}</p>
<p>It doesn&#8217;t make things prettier, but when I have to choose between a beauty contest and quick access to the info I&#8217;m interested in, the latter always wins.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charles</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136587</link>
		<dc:creator>charles</dc:creator>
		<pubDate>Tue, 13 May 2008 20:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136587</guid>
		<description>It is cool that Daniel  comes up with a very nice idea and implementation, and then already many more ideas pop up in the comment. Great thread, great ideas, great tips. Thanks all!</description>
		<content:encoded><![CDATA[<p>It is cool that Daniel  comes up with a very nice idea and implementation, and then already many more ideas pop up in the comment. Great thread, great ideas, great tips. Thanks all!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casey</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136585</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Tue, 13 May 2008 19:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136585</guid>
		<description>Nice script Daniel. Prompted me to look at my referrers for the first time in ages and I added a function to highlite those images that have been linkjacked from my site and may need to be replaced with a goatse.


function HighlightImagesTargetingURLContaining(theURLSubstring)
{
	// For every img
	var imgCount =  document.images.length;
	for (i=0; i &lt; imgCount; i++)
	{
		var thisImg = document.images[i];
		var imgOffset = thisImg.src.indexOf(theURLSubstring);
		if (imgOffset != -1)
		{
			// Literally highlight it by setting the  colors to 
			// something obnoxiously visible
			thisImg.border = 16;
			thisImg.style.borderColor = &#039;#FF0000&#039;;
			thisImg.style.borderStyle = &#039;dashed&#039;;
		}
	}
}
</description>
		<content:encoded><![CDATA[<p>Nice script Daniel. Prompted me to look at my referrers for the first time in ages and I added a function to highlite those images that have been linkjacked from my site and may need to be replaced with a goatse.</p>
<p>function HighlightImagesTargetingURLContaining(theURLSubstring)<br />
{<br />
	// For every img<br />
	var imgCount =  document.images.length;<br />
	for (i=0; i &lt; imgCount; i++)<br />
	{<br />
		var thisImg = document.images[i];<br />
		var imgOffset = thisImg.src.indexOf(theURLSubstring);<br />
		if (imgOffset != -1)<br />
		{<br />
			// Literally highlight it by setting the  colors to<br />
			// something obnoxiously visible<br />
			thisImg.border = 16;<br />
			thisImg.style.borderColor = &#8216;#FF0000&#8242;;<br />
			thisImg.style.borderStyle = &#8216;dashed&#8217;;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Boucher</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136584</link>
		<dc:creator>Ross Boucher</dc:creator>
		<pubDate>Tue, 13 May 2008 18:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136584</guid>
		<description>(Typo in my last post: should be a ~= not a !=)</description>
		<content:encoded><![CDATA[<p>(Typo in my last post: should be a ~= not a !=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Boucher</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136583</link>
		<dc:creator>Ross Boucher</dc:creator>
		<pubDate>Tue, 13 May 2008 18:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136583</guid>
		<description>Hey Daniel,

I think you may be able to accomplish this just using the browser&#039;s custom CSS feature.  See this post by my friend tom:

http://tlrobinson.net/blog/?p=37

Specifically, doing the same highlight of urls containing red-sweater would be:

a[href!=&quot;red-sweater&quot;] {
    background-color: #FF0000;
    color: #FFFFFF;
}

Unfortunately, I&#039;m not aware of a way to select the parent element, which is this approach&#039;s biggest limitation.  The biggest benefit is obvious, its automatic and you don&#039;t have to run a script.</description>
		<content:encoded><![CDATA[<p>Hey Daniel,</p>
<p>I think you may be able to accomplish this just using the browser&#8217;s custom CSS feature.  See this post by my friend tom:</p>
<p><a href="http://tlrobinson.net/blog/?p=37" rel="nofollow">http://tlrobinson.net/blog/?p=37</a></p>
<p>Specifically, doing the same highlight of urls containing red-sweater would be:</p>
<p>a[href!="red-sweater"] {<br />
    background-color: #FF0000;<br />
    color: #FFFFFF;<br />
}</p>
<p>Unfortunately, I&#8217;m not aware of a way to select the parent element, which is this approach&#8217;s biggest limitation.  The biggest benefit is obvious, its automatic and you don&#8217;t have to run a script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Jalkut</title>
		<link>http://www.red-sweater.com/blog/498/safari-link-exposer/comment-page-1#comment-136582</link>
		<dc:creator>Daniel Jalkut</dc:creator>
		<pubDate>Tue, 13 May 2008 18:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.red-sweater.com/blog/?p=498#comment-136582</guid>
		<description>Nice work, Zac!</description>
		<content:encoded><![CDATA[<p>Nice work, Zac!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

