<?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: Suppress right-click menu on a web site</title>
	<link>http://ask.metafilter.com/123419/Suppress-rightclick-menu-on-a-web-site/</link>
	<description>Comments on Ask MetaFilter post Suppress right-click menu on a web site</description>
	<pubDate>Sat, 30 May 2009 03:51:16 -0800</pubDate>
	<lastBuildDate>Sat, 30 May 2009 03:51:16 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Suppress right-click menu on a web site</title>
		<link>http://ask.metafilter.com/123419/Suppress-rightclick-menu-on-a-web-site</link>	
		<description>Is there a way to disable the right-click menu on a particular web page I visit that isn&apos;t managed by me? &lt;br /&gt;&lt;br /&gt; I play a solitaire game on a particular web site fairly often. It&apos;s not a Flash game, nor is it a Java applet, I suspect it&apos;s simply JavaScript. &lt;br&gt;
&lt;br&gt;
The game allows you to use both left and right clicks, each performing different actions, but every time you right-click the normal browser right-click menu appears...very annoying in this context. &lt;br&gt;
&lt;br&gt;
Is there a way for me to tell my browser I don&apos;t want the right-click menu to appear on this one particular page (or its domain, if that&apos;s easier)? I have greasemonkey installed, so a GM script would be ideal, but I haven&apos;t been able to locate one.&lt;br&gt;
&lt;br&gt;
I&apos;m on Windows, using FF. Thanks mucho for any ideas. (I could possibly write my own script if pointed in the right direction.)</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2009:site.123419</guid>
		<pubDate>Sat, 30 May 2009 02:50:40 -0800</pubDate>
		<dc:creator>maxwelton</dc:creator>
		
			<category>rightclick</category>
		
			<category>menu</category>
		
			<category>firefox</category>
		
			<category>disable</category>
		
			<category>javascript</category>
		
			<category>resolved</category>
		
	</item> <item>
		<title>By: Stunt</title>
		<link>http://ask.metafilter.com/123419/Suppress-rightclick-menu-on-a-web-site#1763544</link>	
		<description>An easy way for you to do it would be to make a toolbar bookmark with&lt;br&gt;
&lt;blockqute&gt;&lt;pre&gt;&lt;br&gt;
javascript:void(document.oncontextmenu=new%20Function(&quot;return%20false&quot;))&lt;br&gt;
&lt;/pre&gt;&lt;br&gt;
in it.  When you click on it up in your toolbar right clicking should be disabled for the page.&lt;br&gt;
&lt;br&gt;
Took me way longer to figure that out than it should have; I am apparently way too rusty with these things.&lt;/blockqute&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.123419-1763544</guid>
		<pubDate>Sat, 30 May 2009 03:51:16 -0800</pubDate>
		<dc:creator>Stunt</dc:creator>
	</item><item>
		<title>By: Sparx</title>
		<link>http://ask.metafilter.com/123419/Suppress-rightclick-menu-on-a-web-site#1763549</link>	
		<description>For Greasemonkey&lt;br&gt;
&lt;br&gt;
if(document.addEventListener)&lt;br&gt;
   document.addEventListener(&apos;contextmenu&apos;, function(e) { e.stopPropagation(); }, false);&lt;br&gt;
else if(document.attachEvent)&lt;br&gt;
   document.attachEvent(&apos;oncontextmenu&apos;, function() { event.cancelBubble = true; });&lt;/pre&gt;&lt;br&gt;
&lt;br&gt;
Set up a new user script and apply it to the appropriate domain, then copy and paste the above in.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.123419-1763549</guid>
		<pubDate>Sat, 30 May 2009 04:19:19 -0800</pubDate>
		<dc:creator>Sparx</dc:creator>
	</item><item>
		<title>By: maxwelton</title>
		<link>http://ask.metafilter.com/123419/Suppress-rightclick-menu-on-a-web-site#1763731</link>	
		<description>Thanks! I was able to get Sparx solution to work a treat, but I could not get Stunt&apos;s to work, which may be more me than their solution.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2009:site.123419-1763731</guid>
		<pubDate>Sat, 30 May 2009 11:04:51 -0800</pubDate>
		<dc:creator>maxwelton</dc:creator>
	</item>
	</channel>
</rss>
