<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: bookmarklet for a random link in a new tab</title>
	<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab/</link>
	<description>Comments on Ask MetaFilter post bookmarklet for a random link in a new tab</description>
	<pubDate>Sun, 27 Feb 2011 05:29:42 -0800</pubDate>
	<lastBuildDate>Sun, 27 Feb 2011 05:29:42 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: bookmarklet for a random link in a new tab</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab</link>	
		<description>In Firefox, how can I get my bookmarklet to open a link in a new tab? &lt;br /&gt;&lt;br /&gt; I&apos;m looking for a bookmarklet that will open a random link on the current page, in a new tab. I found a couple of random link openers:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;javascript:void(window.open(document.links[Math.floor(Math.random()*document.links.length)].href,&apos;_self&apos;));&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
&lt;code&gt;javascript:void(location.href=document.links[Math.floor((document.links.length)*Math.random())])&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
but both of them just open the link in the same tab I&apos;m in. Is there a way to modify either of these to open new tabs, or, alternatively, some other one-click way to open a randomly selected link?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2011:site.179507</guid>
		<pubDate>Sun, 27 Feb 2011 05:06:21 -0800</pubDate>
		<dc:creator>maqsarian</dc:creator>
		
			<category>bookmarklet</category>
		
			<category>javascript</category>
		
			<category>firefox</category>
		
			<category>browser</category>
		
			<category>web</category>
		
			<category>internet</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: gregjones</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab#2582423</link>	
		<description>take the &apos;_self&apos; bit off the first one, or change it to a different name. _self refers to the current window anything else (except &apos;_parent&apos; or &apos;_top&apos; which also do special things), or nothing, will mean it opens in a new window.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2011:site.179507-2582423</guid>
		<pubDate>Sun, 27 Feb 2011 05:29:42 -0800</pubDate>
		<dc:creator>gregjones</dc:creator>
	</item><item>
		<title>By: jedrek</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab#2582450</link>	
		<description>you want &apos;_blank&apos; instead of &apos;_self&apos; in the first one.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2011:site.179507-2582450</guid>
		<pubDate>Sun, 27 Feb 2011 06:21:47 -0800</pubDate>
		<dc:creator>jedrek</dc:creator>
	</item><item>
		<title>By: mbrubeck</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab#2582514</link>	
		<description>In the second one, change &quot;void(location.href=blah)&quot; to &quot;void(window.open(blah,&apos;_blank&apos;))&quot;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2011:site.179507-2582514</guid>
		<pubDate>Sun, 27 Feb 2011 07:54:16 -0800</pubDate>
		<dc:creator>mbrubeck</dc:creator>
	</item><item>
		<title>By: maqsarian</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab#2582556</link>	
		<description>Sweet. Thanks!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2011:site.179507-2582556</guid>
		<pubDate>Sun, 27 Feb 2011 08:52:00 -0800</pubDate>
		<dc:creator>maqsarian</dc:creator>
	</item><item>
		<title>By: NortonDC</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab#2582680</link>	
		<description>Middle-clicking on a three button mouse opens bookmarks and normal links in a new tab.  On my 2-button laptop, chording the buttons (pushing and releasing both buttons together) is interpreted as a middle button press and does the same thing.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2011:site.179507-2582680</guid>
		<pubDate>Sun, 27 Feb 2011 11:19:50 -0800</pubDate>
		<dc:creator>NortonDC</dc:creator>
	</item><item>
		<title>By: maqsarian</title>
		<link>http://ask.metafilter.com/179507/bookmarklet-for-a-random-link-in-a-new-tab#2582698</link>	
		<description>Yes. Middle-clicking on a bookmarklet, though, just opens a new tab to javascript:whatever.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2011:site.179507-2582698</guid>
		<pubDate>Sun, 27 Feb 2011 11:35:09 -0800</pubDate>
		<dc:creator>maqsarian</dc:creator>
	</item>
	</channel>
</rss>
