<?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>Stanley Shilov - Web Development, SEO and SEM &#187; javascript</title>
	<atom:link href="http://www.stanleyshilov.com/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stanleyshilov.com</link>
	<description>Web Development with a twist of Affiliate Marketing</description>
	<lastBuildDate>Sun, 06 Jun 2010 21:11:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ubiquity Rapidshare Extension</title>
		<link>http://www.stanleyshilov.com/blog/ubiquity-rapidshare-extension/</link>
		<comments>http://www.stanleyshilov.com/blog/ubiquity-rapidshare-extension/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 19:44:20 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[rapidshare]]></category>
		<category><![CDATA[ubiquity]]></category>

		<guid isPermaLink="false">http://www.stanleyshilov.com/?p=233</guid>
		<description><![CDATA[If you use Ubiquity, this simple extension makes it easy to grab and open any number of Rapidshare links:

CmdUtils.CreateCommand({
name: &#34;rapidshare&#34;,
  preview: function(pblock){
    var selection=context.focusedWindow.getSelection();
    selection=selection.toString();
    selection=selection.match(/http:\/\/rapidshare[^\s]*/gi);
    var links='';
    for(var i=0; i&#60;selection.length; i++){
      links=links+selection[i]+&#34;&#60;br /&#62;&#34;;
 [...]]]></description>
			<content:encoded><![CDATA[<p>If you use <a href="http://labs.mozilla.com/projects/ubiquity/">Ubiquity</a>, this simple extension makes it easy to grab and open any number of Rapidshare links:</p>
<pre class="brush: jscript;">
CmdUtils.CreateCommand({
name: &quot;rapidshare&quot;,
  preview: function(pblock){
    var selection=context.focusedWindow.getSelection();
    selection=selection.toString();
    selection=selection.match(/http:\/\/rapidshare[^\s]*/gi);
    var links='';
    for(var i=0; i&lt;selection.length; i++){
      links=links+selection[i]+&quot;&lt;br /&gt;&quot;;
    }
    pblock.innerHTML=links;
  },
  execute: function(){
    var selection=context.focusedWindow.getSelection();
    selection=selection.toString();
    selection=selection.match(/http:\/\/rapidshare[^\s]*/gi);
    if(selection!=null){
      var links=selection.length;
      for(var i=0; i&lt;links; i++) Utils.openUrlInBrowser(selection[i]);
    }
  }
})
</pre>
<p>The code examines the selected block of text, extracts URLs which resemble Rapidshare links and opens each link in a new tab.</p>
<p><strong>To use:</strong> select the block of text, ctrl + alt to open ubiquity, then start typing &#8220;rapidshare&#8221;</p>
<p>PS: The code can be easily modified to work with other sites, simply replace any mention of &#8220;rapidshare&#8221; with the applicable site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stanleyshilov.com/blog/ubiquity-rapidshare-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
