<?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>beer planet &#187; script</title> <atom:link href="http://beerpla.net/tag/script/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Fri, 06 Jan 2012 08:50:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>Follow-up To Loading CSS And JS Conditionally</title><link>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/</link> <comments>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/#comments</comments> <pubDate>Fri, 15 Jan 2010 20:07:40 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[admin_print_scripts]]></category> <category><![CDATA[admin_print_styles]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[enqueue]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[load]]></category> <category><![CDATA[ob_flush]]></category> <category><![CDATA[ob_start]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[output buffer]]></category> <category><![CDATA[Performance]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[script]]></category> <category><![CDATA[style]]></category> <category><![CDATA[time]]></category> <category><![CDATA[wp_enqueue_script]]></category> <category><![CDATA[wp_enqueue_style]]></category> <category><![CDATA[wp_print_scripts]]></category> <category><![CDATA[wp_print_styles]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/</guid> <description><![CDATA[<p>First of all, I&#039;d like to thank everyone who read and gave their 2 cents about the <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/">[Wordpress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a> post. The article was well received and will hopefully spark some optimizations around loading styles and scripts.</p><p>Here are some discussions and mentions around the web:</p><ul><li><a
href="http://weblogtoolscollection.com/archives/2010/01/15/how-to-include-css-and-javascript-conditionally/" rel="nofollow">an article</a> on Weblog Tools Collection</li><li><a
href="http://www.wptavern.com/forum/resources/1213-including-javascript-css-conditionally.html" rel="nofollow">a forum post</a> on WP Tavern</li><li><a
href="http://topsy.com/tb/ping.fm/DIM0S" rel="nofollow">twitter</a> retweets</li></ul><p>Sure, there are drawbacks to this method and it does require some more processing on the backend and it&#039;s not for everyone, which is why we should always strive for an even better solution.</p><p>I stand by my point of...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>First of all, I&#039;d like to thank everyone who read and gave their 2 cents about the <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/">[Wordpress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a> post. The article was well received and will hopefully spark some optimizations around loading styles and scripts.</p><p>Here are some discussions and mentions around the web:</p><ul><li><a
href="http://weblogtoolscollection.com/archives/2010/01/15/how-to-include-css-and-javascript-conditionally/" rel="nofollow">an article</a> on Weblog Tools Collection</li><li><a
href="http://www.wptavern.com/forum/resources/1213-including-javascript-css-conditionally.html" rel="nofollow">a forum post</a> on WP Tavern</li><li><a
href="http://topsy.com/tb/ping.fm/DIM0S" rel="nofollow">twitter</a> retweets</li></ul><p>Sure, there are drawbacks to this method and it does require some more processing on the backend and it&#039;s not for everyone, which is why we should always strive for an even better solution.</p><p>I stand by my point of view that, for instance, my dedicated gallery shouldn&#039;t load for people who will never even go see my photos.</p><p>I think an ideal solution would be for WP core developers, who had a lot of experience designing WordPress&#039; internals and who know what can work and what can&#039;t, perhaps <a
href="http://www.ma.tt" rel="nofollow">Matt</a> included, to get together and think about a better solution really hard.</p><p>Conditional loading similar to the one discussed here is already possible in the admin area, which creates dynamic hooks by appending page ids to <strong><em>&#039;admin_print_styles&#039;</em></strong> and <strong><em>&#039;admin_print_scripts&#039;</em></strong>. It is, however, still not good enough to be used more generically because those hooks rely on the page you are on, rather than the content of that page.</p><p>Another possibility is using a PHP technique called <strong><em>output buffering</em></strong> (<a
href="http://php.net/manual/en/function.ob-start.php" rel="nofollow"><strong><em>ob_start()</em></strong></a>, <a
href="http://www.php.net/manual/en/function.ob-flush.php" rel="nofollow"><strong><em>ob_flush()</em></strong></a>, etc) that grants second chances to data that had already been echoed. It intercepts all echo and print calls and redirects them into a memory buffer, so instead of printing data to the page right away, you can now modify the header even if it had already been processed. It&#039;s like giving it a second chance.</p><p>Would it work for WordPress? I am not sure but I sure could use your feedback, devs.</p><p><div
class="note"><div
class="notetip"><strong>Update: </strong>Scribu, a WordPress master, <a
href="http://scribu.net/wordpress/optimal-script-loading.html" rel="nofollow">came up with the approach</a> that would at least handle loading JS, as it would put it in the footer, which can be done after the posts have been parsed.</p><p>His approach doesn&#039;t handle CSS which is why I decided to seek another solution but it doesn&#039;t require an extra pass through the posts and it benefits from using the shortcode API instead of stripos() or some hacky regex you&#039;d need to come up with.</p><p>It&#039;s a great compromise for developers who do not want to take the approach I outlined in the article linked at the top of this page.</div></div></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up+To+Loading+CSS+And+JS+Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Follow-up%20To%20Loading%20CSS%20And%20JS%20Conditionally&amp;link=http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/&amp;notes=First%20of%20all%2C%20I%27d%20like%20to%20thank%20everyone%20who%20read%20and%20gave%20their%202%20cents%20about%20the%20%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts%20post.%20The%20article%20was%20well%20received%20and%20will%20hopefully%20spark%20some%20optimizations%20around%20loading%20styles%20an&amp;short_link=http://bit.ly/76og1l&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li><li><a
href="http://beerpla.net/2009/02/17/swapping-column-values-in-mysql/" rel="bookmark" title="February 17, 2009">Swapping Column Values in MySQL</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F15%2Ffollow-up-to-loading-css-and-js-conditionally%2F&amp;title=Follow-up%20To%20Loading%20CSS%20And%20JS%20Conditionally" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</title><link>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/</link> <comments>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/#comments</comments> <pubDate>Wed, 13 Jan 2010 17:15:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[action]]></category> <category><![CDATA[admin_print_scripts]]></category> <category><![CDATA[admin_print_styles]]></category> <category><![CDATA[conditional]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[enqueue]]></category> <category><![CDATA[hook]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[js]]></category> <category><![CDATA[load]]></category> <category><![CDATA[optimization]]></category> <category><![CDATA[Performance]]></category> <category><![CDATA[script]]></category> <category><![CDATA[style]]></category> <category><![CDATA[time]]></category> <category><![CDATA[wp_enqueue_script]]></category> <category><![CDATA[wp_enqueue_style]]></category> <category><![CDATA[wp_print_scripts]]></category> <category><![CDATA[wp_print_styles]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/</guid> <description><![CDATA[<h2>Introduction</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="wordpress logo" alt="wordpress logo" align="left" src="http://beerpla.net/wp-content/uploads/WordpressPluginWritersTakeNoteHowToInclu_863C/image_3.png" width="150" height="150" /> In this tutorial, I am going to introduce a WordPress technique that I believe was unpublished until I <a
href="http://wordpress.org/support/topic/350167" rel="nofollow">raised the question</a> a few days ago on the WordPress forums.</p><p>In short, the problem I was trying to solve was <strong><em>plugins unnecessarily loading their JavaScript and CSS on *every* page of the blog, even when doing so would achieve absolutely nothing and the plugin wouldn&#039;t do any work</em></strong>.</p><p><div
class="note"><div
class="notetip"><strong>Update #1:</strong> I have posted a <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/">follow-up</a> in response to some comments received around the web.</div></div></p><p><div
class="note"><div
class="notetip"><strong>Update #2:</strong> There is a solution that can be considered a compromise as it works well for loading JavaScript but doesn&#039;t handle CSS.</div></div></p><p>I briefly mentioned this approach here but but Scribu...<div
class=clear></div> <a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>Introduction</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="wordpress logo" alt="wordpress logo" align="left" src="http://beerpla.net/wp-content/uploads/WordpressPluginWritersTakeNoteHowToInclu_863C/image_3.png" width="150" height="150" /> In this tutorial, I am going to introduce a WordPress technique that I believe was unpublished until I <a
href="http://wordpress.org/support/topic/350167" rel="nofollow">raised the question</a> a few days ago on the WordPress forums.</p><p>In short, the problem I was trying to solve was <strong><em>plugins unnecessarily loading their JavaScript and CSS on *every* page of the blog, even when doing so would achieve absolutely nothing and the plugin wouldn&#039;t do any work</em></strong>.</p><p><div
class="note"><div
class="notetip"><strong>Update #1:</strong> I have posted a <a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/">follow-up</a> in response to some comments received around the web.</div></div></p><p><div
class="note"><div
class="notetip"><strong>Update #2:</strong> There is a solution that can be considered a compromise as it works well for loading JavaScript but doesn&#039;t handle CSS.</p><p>I briefly mentioned this approach here but but Scribu decided to expand on it by providing a nice Jedi-themed tutorial. It is available <a
href="http://scribu.net/wordpress/optimal-script-loading.html" rel="nofollow">here</a>.</div></div></p><p>Let me explain using this example:</p><ul><li>a code formatter plugin only does something useful when it sees a [code] shortcode in any post on the page.</li><li>most of your posts do not contain the [code] shortcode as you don't include code snippets that often or you only started using this particular plugin recently.</li><li>the plugin, however, loads the CSS and JS (which are most likely <a
href="http://qbnz.com/highlighter/" rel="nofollow">GeSHi</a> and take up loads of space) on every page.</li><li>these CSS and JS do absolutely nothing on most page loads.</li><li>bandwidth is wasted, extra DNS and HTTP requests are processed, the browser is slowed down, and for what? For no good reason, other than the plugin author didn't know how to achieve this conditional loading.</li></ul><p>If you think about it, there are many plugins that only do something once in a blue moon. Table of contents, text manipulators, galleries, sliders, etc, etc. If only they loaded their frontend code strictly when necessary, most page loads would suddenly become much lighter.</p><p>So what can we do to solve this? Let's look at a few techniques.</p><h2>Loading CSS And JS In Place?</h2><p>Here's one, albeit pretty bad, solution - only print the CSS and JS includes if and when you determine somewhere in the middle of loading the posts that the scripts and styles are indeed needed, then set a flag to avoid printing them again. In our example, that would be when the plugin detects the [code] shortcode.</p><p>This, however, is a mediocre solution because, while it's not a bad idea to load Javascript in the footer, <a
href="http://developer.yahoo.com/performance/rules.html" rel="nofollow">CSS should be loaded in the header</a>, otherwise the page might look unformatted until the CSS is reached.</p><p>Additionally, it's not the cleanest and most robust solution because you shouldn't be writing &lt;script&gt; and &lt;style&gt; tags manually but rather using <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style" rel="nofollow">wp_enqueue_style()</a> and <a
href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" rel="nofollow">wp_enqueue_script()</a> functions.</p><h2>What's This About wp_enqueue_FOO?</h2><p>Now, you might say: &quot;What's this about <strong><em>wp_enqueue_style()</em></strong>, <strong><em>wp_enqueue_script()</em></strong>, and then hooking into <strong><em>'wp_print_scripts'</em></strong>, <strong><em>'wp_print_styles'</em></strong>, <strong><em>'admin_print_scripts'</em></strong>, and <strong><em>'admin_print_styles'</em></strong> hooks&quot;? You know about these, right? Right??</p><p>Allow me to explain this, in my opinion, greatest and most underused WordPress paradigm in a short refresher:</p><p><div
class="note"><div
class="noteclassic">WordPress has a great system of queuing up the scripts and styles your script will need to use and printing them all in one go, rather than hooking into wp_head and printing &lt;style&gt; and &lt;script&gt; tags manually.</p><p>This queuing system achieves 2 main goals:</p><ul><li>the <strong><em>same scripts are not loaded multiple times</em></strong>, such as <a
href="http://jquery.com/" rel="nofollow">jQuery</a>, <a
href="http://script.aculo.us/" rel="nofollow">scriptaculous</a>, or any other custom script or style your plugins may share between each other or even other plugins.</li><li>it introduces support for establishing <strong><em>dependencies</em></strong>. You can specify that your script or style depends on another script or style, and WordPress will take care of loading them in the right order. Guaranteed.</li><li>oh what the hell, here's a 3rd one: <strong><em>elegance</em></strong>.</li></ul><p>Here is the way this usually works:</p><ul><li>in the beginning of your plugin you attach to <strong><em>wp_print_scripts</em></strong> and/or <strong><em>wp_print_styles</em></strong> hooks. For example:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>add_action( 'wp_print_scripts', 'enqueue_my_scripts' );
add_action( 'wp_print_styles', 'enqueue_my_styles' );</pre></td></tr></table></div><p>What this will do is call the functions in the 2nd parameter when it's time to execute any functions associated with the hooks in the 1st parameter. It is the main principle behind the WordPress plugin architecture.</li><li>looking at the script example, in the <strong><em>enqueue_my_scripts()</em></strong> function, you can do something like:<div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>wp_enqueue_script( 'my_awesome_script', '/script.js', array( 'jquery' ));</pre></td></tr></table></div><p>which would queue up your script to be printed later but only after jQuery.</p><p>If you or some other plugin calls <strong><em>wp_enqueue_script()</em></strong> with the same first parameter (unique handle), it will just be ignored, rather than printed to the page twice.</li><li>styles are exactly the same, except you use <strong><em>wp_enqueue_style()</em></strong></li></ul><p>There is a variation of this functionality for the admin styles and scripts - all you have to do is change the hooks to <strong><em>admin_print_styles</em></strong> and <strong><em>admin_print_scripts</em></strong>. Ozh made a nice post on this topic <a
href="http://planetozh.com/blog/2008/04/how-to-load-javascript-with-your-wordpress-plugin/" rel="nofollow">here</a> - check it out.</p><p></div></div></p><h2>Enqueuing Alone Is Not Enough</h2><p>Enqueuing is great for loading your JS and CSS but using it alone doesn't achieve the conditional behavior that we are looking for here.</p><p>This is a classic case of Chicken or the Egg, because WordPress makes only one pass through all of the content.</p><p>You see, since the header needs to be printed before the content, <strong><em>wp_print_scripts</em></strong> and <strong><em>wp_print_styles</em></strong> hooks are triggered before you even get to the posts. If you enqueue a script or style from within the 'the_content' hook, for example, the queued up scripts and styles will never get printed. It's too late to print them then anyway, as you're already in the middle of printing the posts.</p><h2>The Solution</h2><p>What we need to do is take a step back, before even printing the header, and then peek ahead.</p><p>Sure, this adds an extra pass over some data, but since no filters are applied during this process and if you avoid regular expressions (using stripos(), for example), this extra pass should be quite negligible.</p><p><div
class="note"><div
class="notewarning">A word of warning though: I'd rather see false positives (enqueuing when it's not needed) than false negatives (miss enqueuing when it's needed), so please do your matching wisely and test well.</div></div></p><p>The upside, however, can be potentially very substantial.</p><p>Credit goes to <a
href="http://twitter.com/white_shadow" rel="nofollow">@white_shadow</a> for the idea.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td
class="code"><pre>add_filter('the_posts', 'conditionally_add_scripts_and_styles'); // the_posts gets triggered before wp_head
function conditionally_add_scripts_and_styles($posts){
	if (empty($posts)) return $posts;
&nbsp;
	$shortcode_found = false; // use this flag to see if styles and scripts need to be enqueued
	foreach ($posts as $post) {
		if (stripos($post-&gt;post_content, '[code]') !== false) {
			$shortcode_found = true; // bingo!
			break;
		}
	}
&nbsp;
	if ($shortcode_found) {
		// enqueue here
		wp_enqueue_style('my-style', '/style.css');
		wp_enqueue_script('my-script', '/script.js');
	}
&nbsp;
	return $posts;
}</pre></td></tr></table></div><p>This simple function fires before the header gets printed, as it's attached to the 'the_posts' hook. However, this time it has full access to the posts' content.</p><p>I have tested this method and it works really well - if you have heavy scripts in your plugin, please do us, users, a favor and incorporate this logic into it.</p><h2>Conclusion</h2><p>In this tutorial, you have seen a method of loading scripts and styles for you plugin conditionally. This technique allows for less bloated pages and faster page loads.</p><p>Plugin developers, what is your take on this solution? Do you use another method? Please share in the comments.</p><div
class='post_blob_1'>Our <a
href="http://www.test-king.com/exams/HP0-D07.htm">HP0-D07</a> study guides will help you to pass your <a
href="http://www.test-king.com/exams/642-436.htm">642-436</a> and <a
href="http://www.test-king.com/exams/640-816.htm">640-816</a> exam on first attempt guaranteed.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress+Plugin+Development%5D+How+To+Include+CSS+and+JavaScript+Conditionally+And+Only+When+Needed+By+The+Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BWordpress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts&amp;link=http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/&amp;notes=Introduction%0D%0A%20In%20this%20tutorial%2C%20I%20am%20going%20to%20introduce%20a%20Wordpress%20technique%20that%20I%20believe%20was%20unpublished%20until%20I%20raised%20the%20question%20a%20few%20days%20ago%20on%20the%20Wordpress%20forums.%0D%0AIn%20short%2C%20the%20problem%20I%20was%20trying%20to%20solve%20was%20plugins%20unnecessarily%20loading%20their%20JavaScript%20and%20CSS%20on%20%2Aevery%2A%20page%20of&amp;short_link=http://bit.ly/aH8tGB&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/01/15/follow-up-to-loading-css-and-js-conditionally/" rel="bookmark" title="January 15, 2010">Follow-up To Loading CSS And JS Conditionally</a></li><li><a
href="http://beerpla.net/2010/01/31/how-to-remove-inline-hardcoded-recent-comments-sidebar-widget-style-from-your-wordpress-theme/" rel="bookmark" title="January 31, 2010">How To Remove Inline Hardcoded Recent Comments Sidebar Widget Style From Your WordPress Theme</a></li><li><a
href="http://beerpla.net/2010/11/06/how-to-dynamically-increase-memory-limits-when-interfacing-with-wordpress-using-xml-rpc-windows-live-writer-etc/" rel="bookmark" title="November 6, 2010">How To Dynamically Increase Memory Limits When Interfacing With WordPress Using XML-RPC (Windows Live Writer, Etc)</a></li><li><a
href="http://beerpla.net/2010/02/20/how-to-view-a-specific-svn-revision-in-your-browser/" rel="bookmark" title="February 20, 2010">How To View A Specific SVN Revision In Your Browser</a></li><li><a
href="http://beerpla.net/2010/03/21/how-to-diagnose-and-fix-incorrect-post-comment-counts-in-wordpress/" rel="bookmark" title="March 21, 2010">How To Diagnose And Fix Incorrect Post Comment Counts In WordPress</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F01%2F13%2Fwordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts%2F&amp;title=%5BWordPress%20Plugin%20Development%5D%20How%20To%20Include%20CSS%20and%20JavaScript%20Conditionally%20And%20Only%20When%20Needed%20By%20The%20Posts" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/feed/</wfw:commentRss> <slash:comments>68</slash:comments> </item> <item><title>Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</title><link>http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/</link> <comments>http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/#comments</comments> <pubDate>Mon, 21 Dec 2009 03:34:59 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[Twitter]]></category> <category><![CDATA[add]]></category> <category><![CDATA[button]]></category> <category><![CDATA[comment]]></category> <category><![CDATA[Firefox]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[retweet]]></category> <category><![CDATA[rt]]></category> <category><![CDATA[script]]></category> <category><![CDATA[troy]]></category> <category><![CDATA[twitter]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image.png" width="150" height="150" /> Ever since the introduction of the official Retweet button, I&#039;ve wanted it to be a little more interactive. I usually want to add my 2 cents into the tweet I&#039;m about to retweet but the default RT button just doesn&#039;t allow for it &#8211; Yes is the only option:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image_3.png" width="324" height="44" /></p><h2>Troy&#039;s Twitter Script</h2><p>Enter <a
href="http://userscripts.org/scripts/show/40617" rel="nofollow">Troy&#039;s Twitter script</a> for Firefox that I <a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/">reviewed in detail</a> a few months ago.</p><p>Troy&#039;s script added the RT button to my stream (along with inline picture and video embed, auto url expander and shortener, name autocomplete, and other things) way before Twitter introduced it.</p><p>It also allowed me to add a couple of words or rephrase the retweet to make...<div
class=clear></div> <a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image.png" width="150" height="150" /> Ever since the introduction of the official Retweet button, I&#039;ve wanted it to be a little more interactive. I usually want to add my 2 cents into the tweet I&#039;m about to retweet but the default RT button just doesn&#039;t allow for it &#8211; Yes is the only option:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image_3.png" width="324" height="44" /></p><h2>Troy&#039;s Twitter Script</h2><p>Enter <a
href="http://userscripts.org/scripts/show/40617" rel="nofollow">Troy&#039;s Twitter script</a> for Firefox that I <a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/">reviewed in detail</a> a few months ago.</p><p>Troy&#039;s script added the RT button to my stream (along with inline picture and video embed, auto url expander and shortener, name autocomplete, and other things) way before Twitter introduced it.</p><p>It also allowed me to add a couple of words or rephrase the retweet to make it more relevant to my followers.</p><p>Here is what clicking on the Retweet button used to do after you installed the Twitter script:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image_4.png" width="536" height="122" /></p><h2>Twitter&#039;s Own Retweet</h2><p>After Twitter rolled out their own Retweet, it simply took over the Retweet button that Troy&#039;s script added and everyone was happy. Right?</p><p>Wrong. Many users, including myself, were left craving the old functionality back.</p><h2>The Newest Version Of Troy&#039;s Twitter Script</h2><p>About an hour ago, Troy <a
href="http://twitter.com/troynt/status/6879083812" rel="nofollow">announced</a> version 10.9 of his script which brings back the old functionality in the form of the &quot;Comment&quot; button. Here it is pictured below:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image_5.png" width="545" height="88" /></p><p>which yet again gives me the opportunity to edit the retweet:</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/EnableTheTwitterRetweetRTButtonThatAllow_109CF/image_4.png" width="536" height="122" /></p></p></p><p>Now we can have the best of both worlds &#8211; the new Comment button lets you retweet and edit while the Retweet button remains the same Twitter&#039;s own one-click Retweet.</p><h2>Download Troy&#039;s Twitter Script</h2><p>Again, here are the simple installation instructions to get Troy&#039;s Twitter script:</p><ol><li>Install <a
href="http://www.getfirefox.com/">Firefox</a> (you already have that, right?)</li><li>Install the <a
href="https://addons.mozilla.org/en-US/firefox/addon/748">Firefox greasemonkey extension</a></li><li>Install the <a
href="http://userscripts.org/scripts/show/40617">Troys Twitter script</a></li></ol><h2>Credit</h2><p>As before, all credit goes to the awesome <a
href="http://twitter.com/troynt" rel="nofollow">Troy</a>.</p><p><a
href="http://button.topsy.com/retweet?nick=ArtemR&amp;title=Enable+A%20Twitter%20Retweet%20%28RT%29%20Button%20That%20Lets%20You%20Add%20Comments%20Before%20Retweeting&amp;url=http%3A%2F%2Fbeerpla.net%2F2009%2F12%2F20%2Fenable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting%2F" rel="nofollow">Tweet</a> this post if you like it and let your friends know about this great twitter web tool.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Enable+A+Twitter+Retweet+%28RT%29+Button+That+Lets+You+Add+Comments+Before+Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Enable%20A%20Twitter%20Retweet%20%28RT%29%20Button%20That%20Lets%20You%20Add%20Comments%20Before%20Retweeting&amp;link=http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/&amp;notes=%20Ever%20since%20the%20introduction%20of%20the%20official%20Retweet%20button%2C%20I%27ve%20wanted%20it%20to%20be%20a%20little%20more%20interactive.%20I%20usually%20want%20to%20add%20my%202%20cents%20into%20the%20tweet%20I%27m%20about%20to%20retweet%20but%20the%20default%20RT%20button%20just%20doesn%27t%20allow%20for%20it%20-%20Yes%20is%20the%20only%20option%3A%20%20%20%20%20Troy%27s%20Twitter%20Script%20%20Enter%20Troy%27s%20Twit&amp;short_link=http://bit.ly/bX8hPM&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/" rel="bookmark" title="March 17, 2009">Twitter.com Autocomplete, Auto URL Expansion, Auto URL Shortener, RT Button, Nested Replies, Inline Media Embed, Search Tabs, And More</a></li><li><a
href="http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/" rel="bookmark" title="October 24, 2009">StackOverflow.com, SuperUser.com, ServerFault.com Fan? Here&#039;s A Greasemonkey Script To Keep Track Of All Your Accounts</a></li><li><a
href="http://beerpla.net/2009/02/12/how-to-fight-clickjacking-using-the-recent-twitter-hijacking-as-an-example/" rel="bookmark" title="February 12, 2009">How To Fight Clickjacking (Using The Recent Twitter Hijacking As An Example)</a></li><li><a
href="http://beerpla.net/2009/04/09/the-real-reasons-to-use-twitter-get-over-your-prejudice-already/" rel="bookmark" title="April 9, 2009">The Real Reasons To Use Twitter (Get Over Your Prejudice Already)</a></li><li><a
href="http://beerpla.net/2009/06/10/essential-firefox-extensions-plugins-add-ons-a-comprehensive-guide-part-2-pragmatic-extensions/" rel="bookmark" title="June 10, 2009">Essential Firefox Extensions (Plugins, Add-Ons) &ndash; A Comprehensive Guide :: Part 2 :: Pragmatic Extensions</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F12%2F20%2Fenable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting%2F&amp;title=Enable%20A%20Twitter%20Retweet%20%28RT%29%20Button%20That%20Lets%20You%20Add%20Comments%20Before%20Retweeting" id="wpa2a_6"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>StackOverflow.com, SuperUser.com, ServerFault.com Fan? Here&#039;s A Greasemonkey Script To Keep Track Of All Your Accounts</title><link>http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/</link> <comments>http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/#comments</comments> <pubDate>Sat, 24 Oct 2009 19:40:22 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[aggregate]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[jeff atwood]]></category> <category><![CDATA[joel spolsky]]></category> <category><![CDATA[script]]></category> <category><![CDATA[server fault]]></category> <category><![CDATA[serverfault]]></category> <category><![CDATA[stack overflow]]></category> <category><![CDATA[stackoverflow]]></category> <category><![CDATA[super user]]></category> <category><![CDATA[superuser]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/</guid> <description><![CDATA[<h2>What Is This All About?</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_7.png" width="150" height="116" />If you, like me, love <a
href="http://www.stackoverflow.com" rel="nofollow">StackOverflow</a>, <a
href="http://www.superuser.com" rel="nofollow">SuperUser</a>, <a
href="http://www.serverfault.com" rel="nofollow">ServerFault</a> &#8211; the community programming/software/sysadmin Q&#38;A sites built by <a
href="http://www.joelonsoftware.com" rel="nofollow">Joel Spolsky</a> and <a
href="http://codinghorror.com" rel="nofollow"></a><a
href="http://www.codinghorror.com" rel="nofollow">Jeff Atwood</a> and you are an active member of these sites, you owe it to yourself to install this underappreciated and unadvertised greasemonkey script: <a
href="http://userscripts.org/scripts/show/54155" rel="nofollow">StackOverflow &#8211; User Info Aggregate</a>. I really think it should get more attention. All credit goes to <a
href="http://userscripts.org/users/100479">Jon Erickson</a>.</p><p>(What? You&#039;ve never heard of the sites mentioned above and you call yourself a programmer? Shame on you &#8211; go check them out immediately!)</p><p>Once you install the script, the top bar that normally shows only single site statistics, like...<div
class=clear></div> <a
href="http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>What Is This All About?</h2><p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_7.png" width="150" height="116" />If you, like me, love <a
href="http://www.stackoverflow.com" rel="nofollow">StackOverflow</a>, <a
href="http://www.superuser.com" rel="nofollow">SuperUser</a>, <a
href="http://www.serverfault.com" rel="nofollow">ServerFault</a> &#8211; the community programming/software/sysadmin Q&amp;A sites built by <a
href="http://www.joelonsoftware.com" rel="nofollow">Joel Spolsky</a> and <a
href="http://codinghorror.com" rel="nofollow"></a><a
href="http://www.codinghorror.com" rel="nofollow">Jeff Atwood</a> and you are an active member of these sites, you owe it to yourself to install this underappreciated and unadvertised greasemonkey script: <a
href="http://userscripts.org/scripts/show/54155" rel="nofollow">StackOverflow &#8211; User Info Aggregate</a>. I really think it should get more attention. All credit goes to <a
href="http://userscripts.org/users/100479">Jon Erickson</a>.</p><p>(What? You&#039;ve never heard of the sites mentioned above and you call yourself a programmer? Shame on you &#8211; go check them out immediately!)</p><p>Once you install the script, the top bar that normally shows only single site statistics, like so:</p><p><a
href="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image.png" class="lightview" rel="gallery['1182']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_thumb.png" width="640" height="35" /></a></p><p>will turn into a multi-site bar, with all your stats at a glance, like so:</p><p><a
href="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_3.png" class="lightview" rel="gallery['1182']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_thumb_3.png" width="667" height="35" /></a></p><p>Each icon is hyperlinked to your account on the respective site, which makes navigating between all of them very easy.</p><h2>Installation</h2><p
align="left">Here are the steps required to get the script up and running:</p><ol><li><div
align="left">Install <a
href="https://addons.mozilla.org/en-US/firefox/addon/748" rel="nofollow">greasemonkey</a> for Firefox.</div></li><li><div
align="left">Install the <a
href="http://userscripts.org/scripts/show/54155" rel="nofollow">StackOverflow &#8211; User Info Aggregate</a> script.</div></li><li><div
align="left">Right click on the greasemonkey icon and select Manage User Scripts… <br
/><a
href="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_4.png" class="lightview" rel="gallery['1182']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_thumb_4.png" width="245" height="155" /></a></div></li><li><div
align="left">Select the script from the list and click the Edit button. This should open up your favorite editor or prompt you to select one. <br
/><a
href="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_5.png" class="lightview" rel="gallery['1182']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_thumb_5.png" width="204" height="83" /></a></div></li><li><div
align="left">Find the section with userIds and replace them with ones of your own (by default the IDs belong to the script author). You can get your own IDs from the user info page (click your name at the top of each site you have an account on). <br
/>&#160;<a
href="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_6.png" class="lightview" rel="gallery['1182']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/Sta.comFanHeresAGreasemonkeyScriptToKeep_A7B6/image_thumb_6.png" width="553" height="130" /></a></div></li><li><div
align="left">Now save the script file and reload the page &#8211; you should have all the stats displayed in one place.</div></li></ol><h2>Credits</h2><ul><li><div
align="left">Big thanks to the creator of this script <a
href="http://userscripts.org/users/100479">Jon Erickson</a>.</div></li><li><div
align="left">Orginal Meta.StackOverflow <a
href="http://meta.stackoverflow.com/questions/5933/greasemonkey-script-to-show-profile-reputation-and-badges-from-all-so-sites-in" rel="nofollow">post</a> by Jon.</div></li></ul><p
align="left">Enjoy.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C+SuperUser.com%2C+ServerFault.com+Fan%3F+Here%27s+A+Greasemonkey+Script+To+Keep+Track+Of+All+Your+Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=StackOverflow.com%2C%20SuperUser.com%2C%20ServerFault.com%20Fan%3F%20Here%27s%20A%20Greasemonkey%20Script%20To%20Keep%20Track%20Of%20All%20Your%20Accounts&amp;link=http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/&amp;notes=What%20Is%20This%20All%20About%3F%20%20If%20you%2C%20like%20me%2C%20love%20StackOverflow%2C%20SuperUser%2C%20ServerFault%20-%20the%20community%20programming%2Fsoftware%2Fsysadmin%20Q%26amp%3BA%20sites%20built%20by%20Joel%20Spolsky%20and%20Jeff%20Atwood%20and%20you%20are%20an%20active%20member%20of%20these%20sites%2C%20you%20owe%20it%20to%20yourself%20to%20install%20this%20underappreciated%20and%20unadvertised&amp;short_link=http://bit.ly/9NtQ4a&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" rel="bookmark" title="December 20, 2009">Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</a></li><li><a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/" rel="bookmark" title="March 17, 2009">Twitter.com Autocomplete, Auto URL Expansion, Auto URL Shortener, RT Button, Nested Replies, Inline Media Embed, Search Tabs, And More</a></li><li><a
href="http://beerpla.net/2009/02/12/how-to-fight-clickjacking-using-the-recent-twitter-hijacking-as-an-example/" rel="bookmark" title="February 12, 2009">How To Fight Clickjacking (Using The Recent Twitter Hijacking As An Example)</a></li><li><a
href="http://beerpla.net/2009/12/17/how-to-make-firebugs-javascript-debugger-break-inside-dynamic-javascript-using-the-debugger-keyword-ie-chrome-too/" rel="bookmark" title="December 17, 2009">How To Make Firebug&#039;s JavaScript Debugger Break Inside Dynamic JavaScript Using The &#039;debugger&#039; Keyword (IE &amp; Chrome Too)</a></li><li><a
href="http://beerpla.net/2010/01/09/how-to-exportimport-your-expandrivesftpdrive-drives-and-settings/" rel="bookmark" title="January 9, 2010">How To Export/Import Your ExpanDrive/SFTPDrive Drives And Settings</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F10%2F24%2Fare-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them%2F&amp;title=StackOverflow.com%2C%20SuperUser.com%2C%20ServerFault.com%20Fan%3F%20Here%26%23039%3Bs%20A%20Greasemonkey%20Script%20To%20Keep%20Track%20Of%20All%20Your%20Accounts" id="wpa2a_8"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Proof That God Does Exist &#8211; You Can Finally Block Those Insanely Annoying Facebook Quizzes For Good</title><link>http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/</link> <comments>http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/#comments</comments> <pubDate>Thu, 11 Jun 2009 15:45:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Awesomeness]]></category> <category><![CDATA[My Favorites]]></category> <category><![CDATA[Stuff]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[addon]]></category> <category><![CDATA[annoying]]></category> <category><![CDATA[block]]></category> <category><![CDATA[disable]]></category> <category><![CDATA[facebook]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[quiz]]></category> <category><![CDATA[script]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/</guid> <description><![CDATA[<h2>WTF</h2><p>I don&#039;t know about you, but I&#039;m incredibly sick of Facebook quizzes. Yeah, shit like this which occupies 90% of my news feed:</p><p><a
href="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image.png" class="lightview" rel="gallery['1029']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_thumb.png" width="525" height="279" /></a></p><p>And to make matters worse, Facebook provides no means to block these quizzes and rid your profile of them forever. The only thing you can do is block each individual quiz. But just like weeds in your backyard, when you block one, three more rise up in its place. I know I am not alone here &#8211; there are literally billions of people searching for a solution to the plague.</p><p>So, what does the tech community do when it is not happy?</p><ol><li>Runs to mommy, crying.</li><li>Drinks heavily, passes out, and comes to work</li></ol><p>...<div
class=clear></div> <a
href="http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>WTF</h2><p>I don&#039;t know about you, but I&#039;m incredibly sick of Facebook quizzes. Yeah, shit like this which occupies 90% of my news feed:</p><p><a
href="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image.png" class="lightview" rel="gallery['1029']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_thumb.png" width="525" height="279" /></a></p><p>And to make matters worse, Facebook provides no means to block these quizzes and rid your profile of them forever. The only thing you can do is block each individual quiz. But just like weeds in your backyard, when you block one, three more rise up in its place. I know I am not alone here &#8211; there are literally billions of people searching for a solution to the plague.</p><p>So, what does the tech community do when it is not happy?</p><ol><li>Runs to mommy, crying.</li><li>Drinks heavily, passes out, and comes to work with a keyboard faceprint, dressed as Koolaid.</li><li>Ignores the problem and lives with it (pussy).</li><li>Takes the matters into its own hands and develops a solution.</li></ol><p>The correct answers are:</p><p
align="center">1. <a
href="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_3.png" class="lightview" rel="gallery['1029']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_thumb_3.png" width="120" height="170" /></a> 2. <a
href="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_4.png" class="lightview" rel="gallery['1029']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_thumb_4.png" width="128" height="170" /></a> and 4. <a
href="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_5.png" class="lightview" rel="gallery['1029']" title="image"><img
style="display: inline" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_thumb_5.png" width="170" height="170" /></a></p></p><p>Enter a true geek at heart by the name of <a
href="http://steeev.freehostia.com/" rel="nofollow" target="_blank">Steeev</a> with his Facebook Purity greasemonkey script that was created with the sole purpose of BLOCKING THE FUCKING QUIZZES. Go <strike>Steeve</strike> Steeev!</p><h2>Solution</h2><p>Installation is as easy as 1, 2, 3:</p><ol><li>Install <a
href="http://www.getfirefox.com/" rel="nofollow">Firefox</a> (you already have that, right?)</li><li>Install the <a
href="https://addons.mozilla.org/en-US/firefox/addon/748" rel="nofollow">Firefox greasemonkey extension</a></li><li>Install the <a
href="http://userscripts.org/scripts/show/44459" rel="nofollow" target="_blank">Facebook Purity script</a></li></ol><p>That&#039;s it. Now go to your Facebook page (make sure you access it via <a
href="http://www.facebook.com">www.facebook.com</a> or <a
href="http://www.new.facebook.com">www.new.facebook.com</a> and not YOURUNIVERSITY.facebook.com (like ucdavis.facebook.com)).</p><p>Check it out &#8211; all quizzes are gone, the script even tells you how many quizzes were blocked:</p><p><a
href="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_6.png" class="lightview" rel="gallery['1029']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/GodDoesExistBlockThoseInsanelyAnnoyingFa_14DB7/image_thumb_6.png" width="289" height="55" /></a></p><p>Pure bliss. Rest quizless now, everyone.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Proof+That+God+Does+Exist+-+You+Can+Finally+Block+Those+Insanely+Annoying+Facebook+Quizzes+For+Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Proof%20That%20God%20Does%20Exist%20-%20You%20Can%20Finally%20Block%20Those%20Insanely%20Annoying%20Facebook%20Quizzes%20For%20Good&amp;link=http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/&amp;notes=WTF%0D%0AI%20don%27t%20know%20about%20you%2C%20but%20I%27m%20incredibly%20sick%20of%20Facebook%20quizzes.%20Yeah%2C%20shit%20like%20this%20which%20occupies%2090%25%20of%20my%20news%20feed%3A%0D%0A%0D%0AAnd%20to%20make%20matters%20worse%2C%20Facebook%20provides%20no%20means%20to%20block%20these%20quizzes%20and%20rid%20your%20profile%20of%20them%20forever.%20The%20only%20thing%20you%20can%20do%20is%20block%20each%20individual%20&amp;short_link=http://bit.ly/97pyJg&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/" rel="bookmark" title="October 24, 2009">StackOverflow.com, SuperUser.com, ServerFault.com Fan? Here&#039;s A Greasemonkey Script To Keep Track Of All Your Accounts</a></li><li><a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" rel="bookmark" title="December 20, 2009">Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</a></li><li><a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/" rel="bookmark" title="March 17, 2009">Twitter.com Autocomplete, Auto URL Expansion, Auto URL Shortener, RT Button, Nested Replies, Inline Media Embed, Search Tabs, And More</a></li><li><a
href="http://beerpla.net/2010/01/12/are-your-youtube-video-embeds-missing-the-full-screen-button-here-is-how-to-fix-it/" rel="bookmark" title="January 12, 2010">Are Your Youtube Video Embeds Missing The Full Screen Button? Here Is How To Fix It</a></li><li><a
href="http://beerpla.net/2010/01/11/web-dev-browser-breakdown-statscharts-from-plaxo-com-for-december-2009-and-thoughts/" rel="bookmark" title="January 11, 2010">[Web Dev] Browser Breakdown Stats+Charts From Plaxo.com For December 2009 And Thoughts</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F11%2Fproof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good%2F&amp;title=Proof%20That%20God%20Does%20Exist%20%26%238211%3B%20You%20Can%20Finally%20Block%20Those%20Insanely%20Annoying%20Facebook%20Quizzes%20For%20Good" id="wpa2a_10"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/06/11/proof-that-god-does-exist-you-can-finally-block-those-insanely-annoying-facebook-quizzes-for-good/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Twitter.com Autocomplete, Auto URL Expansion, Auto URL Shortener, RT Button, Nested Replies, Inline Media Embed, Search Tabs, And More</title><link>http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/</link> <comments>http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/#comments</comments> <pubDate>Tue, 17 Mar 2009 20:14:36 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Awesomeness]]></category> <category><![CDATA[My Favorites]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Twitter]]></category> <category><![CDATA[autocomplete]]></category> <category><![CDATA[embed]]></category> <category><![CDATA[expand]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[hash tags]]></category> <category><![CDATA[media]]></category> <category><![CDATA[mention]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[retweet button]]></category> <category><![CDATA[script]]></category> <category><![CDATA[search]]></category> <category><![CDATA[shorten]]></category> <category><![CDATA[suggest]]></category> <category><![CDATA[tool]]></category> <category><![CDATA[twitter]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/</guid> <description><![CDATA[<p>Recently I read <a
href="http://sixrevisions.com/web_design/10-features-that-will-make-twitter-better/" rel="nofollow">an article</a> on the Six Revisions blog that discussed 10 seemingly simple improvements to the twitter interface. They included such things as nick autocomplete, mentions, groups, and more.</p><p>You could only dream about such twitter improvements&#8230; that is until you use the Troys Twitter script. Just perform the following steps and you will have the features I describe in this article. Here we go:</p><ol><li>Install <a
href="http://www.getfirefox.com/" rel="nofollow">Firefox</a> (you already have that, right?)</li><li>Install the <a
href="https://addons.mozilla.org/en-US/firefox/addon/748" rel="nofollow">Firefox greasemonkey extension</a></li><li>Install the <a
href="http://userscripts.org/scripts/show/40617">Troys Twitter script</a></li></ol><p><div
class="note"><div
class="notehelp"><strong><em>Greasemonkey</em></strong> is the most versatile extension available for Firefox, as it’s essentially a whole framework for scripts that can manipulate any aspect of any</div></div>...<div
class=clear></div> <a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>Recently I read <a
href="http://sixrevisions.com/web_design/10-features-that-will-make-twitter-better/" rel="nofollow">an article</a> on the Six Revisions blog that discussed 10 seemingly simple improvements to the twitter interface. They included such things as nick autocomplete, mentions, groups, and more.</p><p>You could only dream about such twitter improvements&#8230; that is until you use the Troys Twitter script. Just perform the following steps and you will have the features I describe in this article. Here we go:</p><ol><li>Install <a
href="http://www.getfirefox.com/" rel="nofollow">Firefox</a> (you already have that, right?)</li><li>Install the <a
href="https://addons.mozilla.org/en-US/firefox/addon/748" rel="nofollow">Firefox greasemonkey extension</a></li><li>Install the <a
href="http://userscripts.org/scripts/show/40617">Troys Twitter script</a></li></ol><p><div
class="note"><div
class="notehelp"><strong><em>Greasemonkey</em></strong> is the most versatile extension available for Firefox, as it’s essentially a whole framework for scripts that can manipulate any aspect of any page. Head over to <a
href="http://userscripts.org">userscripts.org</a> and take a look at the myriads of scripts written and submitted by other Greasemonkey users.</div></div></p><p>Once you are done with the above steps, head over to <a
href="http://twitter.com" rel="nofollow">twitter.com</a> (there’s no need to restart Firefox). You will then be able to enjoy the following enhancements, which I ordered here in terms of usefulness to me:</p><h2>Autocomplete</h2><p>Do you have a few friends with names so complicated, you can’t type them out by hand? Troys script autocompletes your friends’ names – just type @ and a few letters of their name. This is my favorite feature.</p><p>Before:</p><p>&#160;</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_4.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="163" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_4.png" width="581" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_5.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="166" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_5.png" width="568" /></a></p><p>&#160;</p><h2>Search Bar And Favorite Searches Saved</h2><p>A search box is added to the sidebar. You can make a number of favorite searches, which then also remain sticky on the sidebar above the search box. When you click on a search term, the current page is updated without reloading the whole thing. Note that the favorite search terms are saved locally in your browser and won’t show up on your other computers.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_6.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="219" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_6.png" width="214" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_7.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="422" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_7.png" width="217" /></a></p><h2>Auto Expander Of Shortened URLs</h2><p>Automatically expands url shorteners, so instead of seeing a load of tinyurls and bit.lys, you see proper urls and their native page titles (neat!).</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_8.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="90" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_8.png" width="558" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_9.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="120" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_9.png" width="540" /></a></p><h2>Auto URL Shortener</h2><p><strong>Updated:</strong> The URL shortener auto shortens urls as you type them but only if they will overflow the 140 character limit, otherwise they stay as they are (it now works flawlessly).</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="101" alt="image" src="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_thumb.png" width="538" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_3.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="151" alt="image" src="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_thumb_3.png" width="556" /></a></p><h2>Auto Pagination</h2><p>As you reach the bottom of the page, more earlier updates are automatically loaded after a few seconds. This means you don’t need to click or leave the page in order to see earlier updates. It could get a bit annoying, so I <a
href="http://userscripts.org/topics/23340" rel="nofollow">requested an ability to turn off certain script features</a>. <strong>Update: </strong>you can now turn off every feature of the script individually.</p><h2>Auto Media Embed Expander</h2><p>Pictures and videos are automatically embedded.</p><p>Before:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_10.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="212" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_10.png" width="550" /></a>(Uhmm, I don’t know why I highlighted “sack” but I don’t feel like retaking the screenshot… Yeah…)</p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_11.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="712" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_11.png" width="583" /></a></p><h2>Retweet (RT) Button</h2><p>Adds the missing RT button to each update.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_12.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="74" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_12.png" width="556" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_13.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="82" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_13.png" width="563" /></a></p><h2>Autopopulate Bios on User Listings</h2><p><strong>Updated:</strong> This function will save you hundreds of clicks – when viewing someone&#039;s followers, rather than just seeing their names, the script adds their bios.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_4.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="254" alt="image" src="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_thumb_4.png" width="576" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_5.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="246" alt="image" src="http://beerpla.net/wp-content/uploads/Twi.comAutocompleteAutoURLExpansionAutoU_B355/image_thumb_5.png" width="595" /></a></p><h2>Hyperlinked Hash Tags</h2><p>Hash tags are now hyperlinked to the twitter search page. Seriously, twitter can’t do that by default?</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_14.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="89" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_14.png" width="223" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_15.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="121" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_15.png" width="334" /></a></p><h2>User’s Local Time</h2><p>The script adds a user’s local time. See the example below using the profile of a lovely <a
href="http://twitter.com/kamikazekitty" rel="nofollow">Kamikazekitty</a>. This feature seems unpublished and I found it by accident.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_16.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="208" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_16.png" width="214" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_17.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="221" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_17.png" width="216" /></a></p><h2>Nested Replies</h2><p>This is a great feature – it gives context to @ replies. For example, <a
href="http://twitter.com/ev" rel="nofollow">@ev</a>’s reply to kevin is boring and out of context until you see what they’re talking about, all without looking up @kevin’s updates.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_20.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="94" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_20.png" width="523" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_21.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="114" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_21.png" width="476" /></a></p><h2>Mutual Friends Marked</h2><p><strong>Updated:</strong> This is a new feature. People who you follow and who also follow you back (mutual friendship) are marked with a little smiley face.</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_22.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="233" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_22.png" width="544" /></a></p><p>After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_23.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="243" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_23.png" width="508" /></a></p><h2>Auto <a
href="http://twitter.com/fxxxmylife" rel="nofollow">@fxxxmylife</a> Expansion</h2><p><strong>Updated:</strong> Woot! Following the infamous <a
href="http://twitter.com/fxxxmylife" rel="nofollow">@fxxxmylife</a> is no longer annoying: all posts get auto-expanded. Brilliant. For those who don&#039;t know, FML is a site collecting short stories that all start with &quot;Today,&quot; and end with &quot;FML&quot;. <a
href="http://www.fmylife.com/top" rel="nofollow">Here</a> are the top FMLs to get you started [hooked].</p><p>Before:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_24.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="465" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_24.png" width="479" /></a> After:</p><p><a
href="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_25.png" class="lightview" rel="gallery['872']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="645" alt="image" src="http://beerpla.net/wp-content/uploads/TwitterAutocompleteAutoURLExpansionAutoU_108E8/image_thumb_25.png" width="507" /></a></p><p>That’s it for now in the current script version (6.5) but what a world of difference, isn’t it? <a
href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Fbeerpla.net%2F2009%2F03%2F17%2Ftwitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more%2F&amp;type=page&amp;linkname=%3C!--enpts--%3ETwitter.com%20Autocomplete%2C%20Auto%20URL%20Expansion%2C%20Auto%20URL%20Shortener%2C%20RT%20Button%2C%20Nested%20Replies%2C%20Inline%20Media%20Embed%2C%20Search%20Tabs%2C%20And%20More%3C!--enpte--%3E&amp;linknote=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick" rel="nofollow">Tweet</a> this post if you like it and let your friends know about this great twitter web tool.</p><div
class='post_blob_1'>If thinking of how to pass <a
href="http://www.test-king.com/exams/642-845.htm">642-845</a> then <a
href="http://www.test-king.com/exams/642-825.htm">642-825</a> online training is best option to achieve your goal in days and get <a
href="http://www.test-king.com/exams/650-177.htm">650-177</a> certified.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com+Autocomplete%2C+Auto+URL+Expansion%2C+Auto+URL+Shortener%2C+RT+Button%2C+Nested+Replies%2C+Inline+Media+Embed%2C+Search+Tabs%2C+And+More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Twitter.com%20Autocomplete%2C%20Auto%20URL%20Expansion%2C%20Auto%20URL%20Shortener%2C%20RT%20Button%2C%20Nested%20Replies%2C%20Inline%20Media%20Embed%2C%20Search%20Tabs%2C%20And%20More&amp;link=http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/&amp;notes=Recently%20I%20read%20an%20article%20on%20the%20Six%20Revisions%20blog%20that%20discussed%2010%20seemingly%20simple%20improvements%20to%20the%20twitter%20interface.%20They%20included%20such%20things%20as%20nick%20autocomplete%2C%20mentions%2C%20groups%2C%20and%20more.%0D%0AYou%20could%20only%20dream%20about%20such%20twitter%20improvements...%20that%20is%20until%20you%20use%20the%20Troys%20Twitter%20&amp;short_link=http://bit.ly/a8MzRA&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" rel="bookmark" title="December 20, 2009">Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</a></li><li><a
href="http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/" rel="bookmark" title="October 24, 2009">StackOverflow.com, SuperUser.com, ServerFault.com Fan? Here&#039;s A Greasemonkey Script To Keep Track Of All Your Accounts</a></li><li><a
href="http://beerpla.net/2009/02/12/how-to-fight-clickjacking-using-the-recent-twitter-hijacking-as-an-example/" rel="bookmark" title="February 12, 2009">How To Fight Clickjacking (Using The Recent Twitter Hijacking As An Example)</a></li><li><a
href="http://beerpla.net/2009/06/10/essential-firefox-extensions-plugins-add-ons-a-comprehensive-guide-part-2-pragmatic-extensions/" rel="bookmark" title="June 10, 2009">Essential Firefox Extensions (Plugins, Add-Ons) &ndash; A Comprehensive Guide :: Part 2 :: Pragmatic Extensions</a></li><li><a
href="http://beerpla.net/2009/04/09/the-real-reasons-to-use-twitter-get-over-your-prejudice-already/" rel="bookmark" title="April 9, 2009">The Real Reasons To Use Twitter (Get Over Your Prejudice Already)</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F03%2F17%2Ftwitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more%2F&amp;title=Twitter.com%20Autocomplete%2C%20Auto%20URL%20Expansion%2C%20Auto%20URL%20Shortener%2C%20RT%20Button%2C%20Nested%20Replies%2C%20Inline%20Media%20Embed%2C%20Search%20Tabs%2C%20And%20More" id="wpa2a_12"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/feed/</wfw:commentRss> <slash:comments>35</slash:comments> </item> <item><title>[Perl] How To Get The Path Of An Included Library (.pm), Regardless Of Current Directory</title><link>http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/</link> <comments>http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/#comments</comments> <pubDate>Fri, 06 Mar 2009 05:41:02 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[dir]]></category> <category><![CDATA[directory]]></category> <category><![CDATA[INC]]></category> <category><![CDATA[include]]></category> <category><![CDATA[library]]></category> <category><![CDATA[path]]></category> <category><![CDATA[script]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/</guid> <description><![CDATA[<h2>Problem</h2><p>While writing a 1093985th Perl script the other day I was facing the following dilemma:</p><ul><li>Let’s say there is a local library, called <em>TheUberLib.pm</em>. It is so uber that most of my scripts, located all over the machine, include it.</li><li>Now, let’s also say that there’s an even more uberly important binary called <em>run_me_now_or_you_will_die</em> but the only way to find it is by using a relative path to the aforementioned <em>TheUberLib.pm</em>, for example <em>../bin</em> (RELATIVE TO <em>TheUberLib.pm)</em>.</li><li>I don’t want to hardcode the path to <em>run_me_now_or_you_will_die </em>because it can be different on multiple machines and the code wouldn’t be robust enough – all I know is that the path is relative to an included library.</li></ul><p>...<div
class=clear></div> <a
href="http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>Problem</h2><p>While writing a 1093985th Perl script the other day I was facing the following dilemma:</p><ul><li>Let’s say there is a local library, called <em>TheUberLib.pm</em>. It is so uber that most of my scripts, located all over the machine, include it.</li><li>Now, let’s also say that there’s an even more uberly important binary called <em>run_me_now_or_you_will_die</em> but the only way to find it is by using a relative path to the aforementioned <em>TheUberLib.pm</em>, for example <em>../bin</em> (RELATIVE TO <em>TheUberLib.pm)</em>.</li><li>I don’t want to hardcode the path to <em>run_me_now_or_you_will_die </em>because it can be different on multiple machines and the code wouldn’t be robust enough – all I know is that the path is relative to an included library.</li></ul><p>So how does one get the path to an included <em>TheUberLib.pm </em>(in my case to deduce the path to <em>run_me_now_or_you_will_die</em>),<em> </em>regardless of the script location and the current directory?</p><p>I started looking at all possible ways of getting this information.</p><ul><li>At first I looked at $0. $0 returns the path to the Perl script itself (<em>LibraryPath/lib_path.pl</em>) and is completely useless here.</li><li>The <em>FindBin </em>module that I sometimes use was also of no help as it also deals with the caller script path.</li></ul><h2>Solution</h2><p>After digging around for a bit, this is the method I came up with that did exactly what I wanted:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
</pre></td><td
class="code"><pre>use File::Basename;
my $path_to_uber_lib = dirname($INC{'TheUberLib.pm'});</pre></td></tr></table></div><p>and the clean way to get the final path to <em>run_me_now_or_you_will_die</em> is:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre>my $relative_path_to_bin_dir = &quot;../the_path_we_want/run_me_now_or_you_will_die&quot;;
my $path_to_deadly_bin = Cwd::realpath(&quot;$path_to_uber_lib/$relative_path_to_bin_dir&quot;);
print &quot;The path to deadly bin is: $path_to_deadly_bin\n&quot;;</pre></td></tr></table></div><p>which prints <em>/tmp/LibraryPath/some_path1/the_path_we_want/run_me_now_or_you_will_die.</em></p><p>Here is the full program with all directories that you can check out from SVN:</p><div
class="wp_syntax"><div
class="code"><pre>svn co http://beerpla.net/svn/public/Perl/LibraryPath/</pre></div></div><p>or just browse the code here: <a
href="http://beerpla.net/svn/public/Perl/LibraryPath/">http://beerpla.net/svn/public/Perl/LibraryPath/</a></p><h2>Explanation</h2><p>The <em>%INC</em> hash contains all included libraries, with library names as keys and full paths as values.</p><p>The <em>dirname()</em> function is part of <a
href="http://perldoc.perl.org/File/Basename.html" rel="nofollow">File::Basename</a><em></em> and returns just the directory part of the path.</p><p>Finally, <a
href="http://perldoc.perl.org/Cwd.html" rel="nofollow">Cwd::realpath()</a><em></em> is a function that resolves relative and symbolic links to canonical absolute ones.</p><p>And there you have it.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D+How+To+Get+The+Path+Of+An+Included+Library+%28.pm%29%2C+Regardless+Of+Current+Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BPerl%5D%20How%20To%20Get%20The%20Path%20Of%20An%20Included%20Library%20%28.pm%29%2C%20Regardless%20Of%20Current%20Directory&amp;link=http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/&amp;notes=Problem%20%20While%20writing%20a%201093985th%20Perl%20script%20the%20other%20day%20I%20was%20facing%20the%20following%20dilemma%3A%20%20%20%20%20Let%E2%80%99s%20say%20there%20is%20a%20local%20library%2C%20called%20TheUberLib.pm.%20It%20is%20so%20uber%20that%20most%20of%20my%20scripts%2C%20located%20all%20over%20the%20machine%2C%20include%20it.%20%20%20%20%20Now%2C%20let%E2%80%99s%20also%20say%20that%20there%E2%80%99s%20an%20even%20more%20uber&amp;short_link=http://bit.ly/cVf4Vf&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2007/10/28/ftprush-cleanup-script/" rel="bookmark" title="October 28, 2007">FTPRush Cleanup Script</a></li><li><a
href="http://beerpla.net/2008/04/29/how-do-i-get-both-the-return-value-and-text-in-perl-backticks-vs-system-perl-510/" rel="bookmark" title="April 29, 2008">How Do I Get Both The Return Value And Text In Perl? Backticks vs. System() (Perl 5.10)</a></li><li><a
href="http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/" rel="bookmark" title="April 8, 2009">[Perl] Finding Files, The Fun And Elegant Way</a></li><li><a
href="http://beerpla.net/2008/03/27/parsing-json-in-perl-by-example-southparkstudioscom-south-park-episodes/" rel="bookmark" title="March 27, 2008">Parsing JSON In Perl By Example &#8211; SouthParkStudios.com South Park Episodes</a></li><li><a
href="http://beerpla.net/2010/01/13/wordpress-plugin-development-how-to-include-css-and-javascript-conditionally-and-only-when-needed-by-the-posts/" rel="bookmark" title="January 13, 2010">[WordPress Plugin Development] How To Include CSS and JavaScript Conditionally And Only When Needed By The Posts</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F03%2F05%2Fperl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory%2F&amp;title=%5BPerl%5D%20How%20To%20Get%20The%20Path%20Of%20An%20Included%20Library%20%28.pm%29%2C%20Regardless%20Of%20Current%20Directory" id="wpa2a_14"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>FTPRush Cleanup Script</title><link>http://beerpla.net/2007/10/28/ftprush-cleanup-script/</link> <comments>http://beerpla.net/2007/10/28/ftprush-cleanup-script/#comments</comments> <pubDate>Mon, 29 Oct 2007 00:39:28 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Programming]]></category> <category><![CDATA[clean]]></category> <category><![CDATA[ftprush]]></category> <category><![CDATA[fxp]]></category> <category><![CDATA[local]]></category> <category><![CDATA[script]]></category> <guid
isPermaLink="false">http://beerpla.net/2007/10/28/ftprush-cleanup-script/</guid> <description><![CDATA[<p>Removes all ftprush queue items that don&#039;t download to localhost. It is useful to run if you FXP a lot of files back and forth and want to clean up the queues from time to time, but don&#039;t want to delete anything that is downloading. Feel free to make a shortcut to this script and run it any time you want.</p><p>Note that this script is only compatible with the ANSI FTPRush version. The Unicode version is not supported.</p><p>You need to have Activestate Perl installed in order to run this script. <a
href="http://www.google.com/search?q=activestate+perl+download">http://www.google.com/search?q=activestate+perl+download</a></p><p>Script source is available from SVN <a
href="http://beerpla.net/svn/public/Perl/FTPRush.Cleanup/clean_ftprush.pl" target="_blank">here</a>.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16</pre></td></tr></table></div><p>...<div
class=clear></div> <a
href="http://beerpla.net/2007/10/28/ftprush-cleanup-script/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p>Removes all ftprush queue items that don&#039;t download to localhost. It is useful to run if you FXP a lot of files back and forth and want to clean up the queues from time to time, but don&#039;t want to delete anything that is downloading. Feel free to make a shortcut to this script and run it any time you want.</p><p>Note that this script is only compatible with the ANSI FTPRush version. The Unicode version is not supported.</p><p>You need to have Activestate Perl installed in order to run this script. <a
href="http://www.google.com/search?q=activestate+perl+download">http://www.google.com/search?q=activestate+perl+download</a></p><p>Script source is available from SVN <a
href="http://beerpla.net/svn/public/Perl/FTPRush.Cleanup/clean_ftprush.pl" target="_blank">here</a>.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
</pre></td><td
class="code"><pre>#!/usr/bin/perl
#
# AUTHOR:   Artem Russakovskii
#
# URL:      http://beerpla.net
#
# DATE:     02/21/07
#
# ABSTRACT: Removes all ftprush queue items that don't download to localhost.
#           It is useful to run if you FXP a lot of files back and forth and want
#           to clean up the queues from time to time, but don't want to delete
#           anything that is downloading.
#           Feel free to make a shortcut to this script and run it any time you want.
#
#           Note that this script is only compatible with the ANSI FTPRush version.
#           The Unicode version is not supported.
#
#           You need to have Activestate Perl installed in order to run this script.
#           http://www.google.com/search?q=activestate+perl+download
&nbsp;
use strict;
use Data::Dumper;
use File::Path;
use File::Find;
use Cwd;
&nbsp;
my $ftprush_location = &quot;C:\\Program Files\\FTPRush\\Queue&quot;; # FTPRush queue location
&nbsp;
sub return_file_list
{
  my @filelist;
  find(
    sub {
      if ( $File::Find::name =~ /rfq$/i )
      {
        push @filelist, $File::Find::name;
      }
    },
    $ftprush_location
  );
&nbsp;
  return @filelist;
}
&nbsp;
foreach(return_file_list()){
  open(FILE, $_) or die &quot;Couldn't open $_&quot;;
  my $file = ;
  close FILE;
&nbsp;
  if($file =~ /\bLocal\b/){
    print &quot;File $_ contains localhost downloads\n&quot;;
  }
  else{
    print &quot;Deleting $_\n&quot;;
    unlink or print &quot;$!\n&quot;;
  }
}</pre></td></tr></table></div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush+Cleanup+Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=FTPRush%20Cleanup%20Script&amp;link=http://beerpla.net/2007/10/28/ftprush-cleanup-script/&amp;notes=Removes%20all%20ftprush%20queue%20items%20that%20don%27t%20download%20to%20localhost.%20It%20is%20useful%20to%20run%20if%20you%20FXP%20a%20lot%20of%20files%20back%20and%20forth%20and%20want%20to%20clean%20up%20the%20queues%20from%20time%20to%20time%2C%20but%20don%27t%20want%20to%20delete%20anything%20that%20is%20downloading.%20Feel%20free%20to%20make%20a%20shortcut%20to%20this%20script%20and%20run%20it%20any%20time%20you&amp;short_link=http://bit.ly/bK9bSq&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/" rel="bookmark" title="April 8, 2009">[Perl] Finding Files, The Fun And Elegant Way</a></li><li><a
href="http://beerpla.net/2009/03/05/perl-how-to-get-the-path-of-an-included-library-pm-regardless-of-current-directory/" rel="bookmark" title="March 5, 2009">[Perl] How To Get The Path Of An Included Library (.pm), Regardless Of Current Directory</a></li><li><a
href="http://beerpla.net/2008/03/21/quick-snippet-finding-if-a-file-has-a-media-extension-using-regex/" rel="bookmark" title="March 21, 2008">Quick Perl Snippet: Finding If A File Has A Media Extension Using Regex</a></li><li><a
href="http://beerpla.net/2009/12/20/enable-a-twitter-retweet-rt-button-that-lets-you-add-comments-before-retweeting/" rel="bookmark" title="December 20, 2009">Enable A Twitter Retweet (RT) Button That Lets You Add Comments Before Retweeting</a></li><li><a
href="http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/" rel="bookmark" title="July 9, 2007">The Repositories For apt-get In SUSE 10.2</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2007%2F10%2F28%2Fftprush-cleanup-script%2F&amp;title=FTPRush%20Cleanup%20Script" id="wpa2a_16"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2007/10/28/ftprush-cleanup-script/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
