<?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>Ash Clarke</title>
	<atom:link href="http://www.ashclarke.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ashclarke.com</link>
	<description>Software Engineer. User Interface Developer. Gamer. Nerd.</description>
	<lastBuildDate>Wed, 11 Apr 2012 19:54:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to Hide Facebook Ads in Google Chrome with Stylish</title>
		<link>http://www.ashclarke.com/2012/how-to-hide-facebook-ads-in-google-chrome-with-stylish/</link>
		<comments>http://www.ashclarke.com/2012/how-to-hide-facebook-ads-in-google-chrome-with-stylish/#comments</comments>
		<pubDate>Sun, 12 Feb 2012 14:37:00 +0000</pubDate>
		<dc:creator>Ash Clarke</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[adverts]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[stylish]]></category>
		<category><![CDATA[web store]]></category>

		<guid isPermaLink="false">http://www.ashclarke.com/?p=95</guid>
		<description><![CDATA[After my post on hiding ads in Mozilla Firefox, I decided to do a follow up using Google Chrome. I can&#8217;t say I enjoyed the experience, but I got it to work in the end. I have a love/hate relationship &#8230; <a href="http://www.ashclarke.com/2012/how-to-hide-facebook-ads-in-google-chrome-with-stylish/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After my <a title="How to Hide Facebook Ads in Mozilla Firefox with Stylish" href="http://www.ashclarke.com/2011/how-to-hide-facebook-ads-in-mozilla-firefox-with-stylish/" target="_blank">post</a> on hiding ads in Mozilla Firefox, I decided to do a follow up using Google Chrome. I can&#8217;t say I enjoyed the experience, but I got it to work in the end.</p>
<p><span id="more-95"></span></p>
<p>I have a love/hate relationship with Google Chrome. It&#8217;s fast now and again, but I still love to hate it. In addition, while I was writing this, Chrome managed to bluescreen my PC (my first bluescreen in about 3 years).The Chrome version of this add-on isn&#8217;t exactly the most user-friendly either.</p>
<p>To start on the road to ad-free Facebook on Chrome, <a title="Stylish search on Chrome Web Store" href="https://chrome.google.com/webstore/search/stylish" target="_blank">visit the web store and search for stylish</a>. It&#8217;s the first result, so click the &#8220;Add to Chrome&#8221; button to install.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-101" title="webstore-search" src="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/webstore-search-1024x302.png" alt="" width="717" height="211" /></p>
<p>Once installed, make your way to <a title="Facebook" href="https://www.facebook.com/" target="_blank">Facebook</a> and click the new S icon in the Chrome toolbar. Select the &#8220;Manage Installed Styles&#8221; link.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-100" title="stylish-manage" src="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/stylish-manage.png" alt="" width="757" height="208" /></p>
<p>You will be greeted by  an ugly screen that allows you to add new styles. Click the &#8220;Write new style&#8221; button to start the fun.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-102" title="write-new" src="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/write-new.png" alt="" width="277" height="355" /></p>
<p>In the &#8220;Add New Style&#8221; screen, fill in the name field with &#8220;Facebook&#8221; or anything you like.</p>
<p>Fill in the &#8220;Code&#8221; field with the following:</p>
<pre>/* Updated 12-02-2012 */

/* Hide ads on Home */
#rightCol #pagelet_ego_pane_w { display: none; }

/* Hide Right Column Footer on Home */
#rightCol #pagelet_rhc_footer { display: none; }

/* Hide ads on Timeline and Photo View */
#rightCol #pagelet_side_ads.fbTimelineSideAds,
#rightCol #pagelet_side_ads,
#fbPhotoSnowliftAdsSide { display: none; }

/* Hide ads on Comment View */
.UIStandardFrame_SidebarAds #pagelet_ego_pane .ego_column:not(.egoOrganicColumn) { display: none; }

/* Hide "People you may know" on Comment View */
.UIStandardFrame_SidebarAds #pagelet_ego_pane .egoOrganicColumn { display: none; }

/* Hide ads and sponsored stories on Message View */
#MessagingNetegoSidebar .ego_column:not(.egoOrganicColumn) { display: none; }
/* Hide ads on pages */
#rightCol #pagelet_ego_pane .ego_column:not(.egoOrganicColumn) { display: none; }</pre>
<p>Your window will look like this (You can use the resizer at the bottom-right of the field to increase the viewable area of the text field).</p>
<p style="text-align: center;"><a href="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/add-new-style.png"><img class="aligncenter  wp-image-96" title="View full size" src="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/add-new-style.png" alt="" width="678" height="414" /></a></p>
<p>Before clicking save, click the &#8220;Specify&#8221; button in the &#8220;Applies to&#8221; section. Select the &#8220;URLs on the Domain&#8221; option and fill in &#8220;facebook.com&#8221; (no quotes) in the field next to it. You do not have to click &#8220;Add&#8221; at this point as that adds a new rule.</p>
<p>Go ahead and click &#8220;Save&#8221; on the left of the screen and, after it has saved, click &#8220;Back to manage&#8221;.</p>
<p>You should now see your newly created style on the right.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-99" title="saved-style" src="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/saved-style.png" alt="" width="524" height="358" /></p>
<p style="text-align: left;">When you visit Facebook, the ads should now be gone and a little [1] will appear on the S icon in the Chrome toolbar to show how many styles apply to the currently viewed site.</p>
<p style="text-align: center;"><img class="aligncenter  wp-image-97" title="applied-style" src="http://www.ashclarke.com/blog/wp-content/uploads/2012/02/applied-style.png" alt="" width="751" height="341" /></p>
<p>Hope this is helpful for all the Chrome users out there. If you don&#8217;t want the style to apply anymore, just click the &#8220;Disable&#8221; or &#8220;Delete&#8221; button in the &#8220;Manage installed styles&#8221; screen.</p>
<p>UPDATE [02/12]: Updated css to hide ads on &#8220;pages&#8221;. Thanks &#8220;J Greener&#8221;!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ashclarke.com/2012/how-to-hide-facebook-ads-in-google-chrome-with-stylish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Hide Facebook Ads in Mozilla Firefox with Stylish</title>
		<link>http://www.ashclarke.com/2011/how-to-hide-facebook-ads-in-mozilla-firefox-with-stylish/</link>
		<comments>http://www.ashclarke.com/2011/how-to-hide-facebook-ads-in-mozilla-firefox-with-stylish/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 18:27:00 +0000</pubDate>
		<dc:creator>Ash Clarke</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[adverts]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hide]]></category>
		<category><![CDATA[stylish]]></category>

		<guid isPermaLink="false">http://www.ashclarke.com/?p=78</guid>
		<description><![CDATA[Ads. They suck. You never click them and they don&#8217;t benefit your life whatsoever. If this sounds like you, I will now let you in to a secret way of hiding them that no company ever wants you to find &#8230; <a href="http://www.ashclarke.com/2011/how-to-hide-facebook-ads-in-mozilla-firefox-with-stylish/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ads. They suck. You never click them and they don&#8217;t benefit your life whatsoever.</p>
<p>If this sounds like you, I will now let you in to a secret way of hiding them that no company ever wants you to find out&#8230;<br />
<span id="more-78"></span></p>
<p>Not really, it&#8217;s just CSS styles. First step is to download the <a title="Download Stylish Addon" href="https://addons.mozilla.org/en-US/firefox/addon/stylish/" target="_blank">Stylish add-on</a> for Mozilla Firefox.</p>
<p>After you have installed the add-on and restarted Firefox, visit <a title="Go to Facebook" href="http://www.facebook.com" target="_blank">Facebook.com</a>.</p>
<p>In the bottom right corner of Firefox, there will be an S icon.</p>
<p><img class="aligncenter size-full wp-image-79" title="Stylish Icon" src="http://www.ashclarke.com/blog/wp-content/uploads/2011/09/StylishIcon.png" alt="" width="53" height="27" /></p>
<p>Clicking this will open up a menu, where you can choose to &#8220;Write a New Style&#8221;. Click the &#8220;For facebook.com&#8221; option.</p>
<p><img class="aligncenter size-full wp-image-80" title="WriteNewStyle" src="http://www.ashclarke.com/blog/wp-content/uploads/2011/09/WriteNewStyle.png" alt="" width="350" height="138" /></p>
<p>This will bring up a new window where you can enter your new styles to override the Facebook developers&#8217; defaults. I have added a screenshot to show where the new styles go.</p>
<p><a href="http://www.ashclarke.com/blog/wp-content/uploads/2011/09/NewStyle.png"><img class="aligncenter size-medium wp-image-81" title="&quot;New Style&quot; Window" src="http://www.ashclarke.com/blog/wp-content/uploads/2011/09/NewStyle-300x200.png" alt="" width="300" height="200" /></a></p>
<p>Now you can replace the text in the window with the following rules:</p>
<pre>@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain("facebook.com") {

/* Updated 12-02-2012 */

/* Hide ads on Home */
#rightCol #pagelet_ego_pane_w { display: none; }

/* Hide Right Column Footer on Home */
#rightCol #pagelet_rhc_footer { display: none; }

/* Hide ads on Timeline and Photo View */
#rightCol #pagelet_side_ads.fbTimelineSideAds,
#rightCol #pagelet_side_ads,
#fbPhotoSnowliftAdsSide { display: none; }

/* Hide ads on Comment View */
.UIStandardFrame_SidebarAds #pagelet_ego_pane .ego_column:not(.egoOrganicColumn) { display: none; }

/* Hide "People you may know" on Comment View */
.UIStandardFrame_SidebarAds #pagelet_ego_pane .egoOrganicColumn { display: none; }

/* Hide ads and sponsored stories on Message View */
#MessagingNetegoSidebar .ego_column:not(.egoOrganicColumn) { display: none; }

/* Hide ads on pages */
#rightCol #pagelet_ego_pane .ego_column:not(.egoOrganicColumn) { display: none; }
}</pre>
<p>Click the &#8220;Preview&#8221; button and you should see the ads disappear in the background. Click &#8220;Save&#8221; and the window will close. The styles will now be loaded when you visit any part of Facebook.</p>
<p>Let me know if this doesn&#8217;t work, or stops working. The styles above are heavily dependent on how Facebook developers have named the Ad elements on the site.</p>
<p>If they, therefore, realise another lovely update the ads might suddenly reappear and I will have to spend another 30 seconds writing a new style and 10 seconds updating this post : )</p>
<p>If you feel you can&#8217;t trust this, or it looks like something messed up, you can find the &#8220;Uninstall&#8221; (to remove it) or &#8220;Disable&#8221; option by right-clicking on the style when visiting Facebook.</p>
<p><img class="aligncenter size-full wp-image-84" title="Uninstall" src="http://www.ashclarke.com/blog/wp-content/uploads/2011/09/Uninstall.png" alt="" width="188" height="142" /></p>
<p>UPDATE: Added styles to hide new ads on the new timeline profile.</p>
<p>UPDATE [02/11]: Updated with new css to reflect recent code changes by FB devs.  Thanks, &#8220;R Preston Berrett&#8221;.</p>
<p>UPDATE [02/12]: Updated with new css to reflect changes to the FB site. Added better comments to explain what each bit is doing.</p>
<p>UPDATE [02/12]: Updated with new css to hide ads on &#8220;pages&#8221;. Thanks &#8220;J Greener&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ashclarke.com/2011/how-to-hide-facebook-ads-in-mozilla-firefox-with-stylish/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>IE 6/7 Overflow: auto Scrolling Bug</title>
		<link>http://www.ashclarke.com/2010/ie-67-overflow-auto-scrolling-bug/</link>
		<comments>http://www.ashclarke.com/2010/ie-67-overflow-auto-scrolling-bug/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 09:06:00 +0000</pubDate>
		<dc:creator>Ash Clarke</dc:creator>
				<category><![CDATA[Bug Fixes]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[frozen]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[overflow: auto]]></category>
		<category><![CDATA[scrolling]]></category>

		<guid isPermaLink="false">http://www.ashclarke.com/2010/ie-67-overflow-auto-scrolling-bug/</guid>
		<description><![CDATA[I came across an issue whereby a scrolling div, styled with overflow: auto does not scroll its contents correctly if its child divs are positioned relatively or floated. When scrolling, the contents were frozen in IE 7 and half frozen &#8230; <a href="http://www.ashclarke.com/2010/ie-67-overflow-auto-scrolling-bug/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came across an issue whereby a scrolling div, styled with overflow: auto does not scroll its contents correctly if its child divs are positioned relatively or floated. When scrolling, the contents were frozen in IE 7 and half frozen in IE 6 with the text just scrolling on its own.</p>
<p>Turns out there is a ridiculously simple fix for this. Just apply relative positioning to the parent div and suddenly, everything falls back into place.</p>
<p>I can&#8217;t be thankful enough for how easy this fix is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ashclarke.com/2010/ie-67-overflow-auto-scrolling-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

