<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: greasemonkey for RMLS</title>
	<atom:link href="http://www.outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/</link>
	<description>code is freedom -- patching my itch</description>
	<pubDate>Tue, 06 Jan 2009 08:26:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Mike</title>
		<link>http://www.outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/#comment-560</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 18 Apr 2007 12:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/#comment-560</guid>
		<description>since greasemonkey doesn't start its work until after a page has fully loaded, I don't think you need an event listener, and you can add functions into the head like this:


/* 
linefeeds in the newjs string keep the code readable when you view generated source and can help when you're debugging in venkman, although line numbers will be a bit off in venkman.
*/

var newjs='\n'+
'var foo="Howdy!";\n'+
'\n'+
'function bar(foo){\n'+
'  alert(foo);\n'+
'}\n'+
'\n';

var newscript=document.createElement('script');
newscript.setAttribute('type','text/javascript');
newscript.setAttribute('id','myscript'); // optional
newscript.innerHTML=newjs;
var head=document.getElementsByTagName('head').item(0);
head.appendChild(newscript);</description>
		<content:encoded><![CDATA[<p>since greasemonkey doesn&#8217;t start its work until after a page has fully loaded, I don&#8217;t think you need an event listener, and you can add functions into the head like this:</p>
<p>/*<br />
linefeeds in the newjs string keep the code readable when you view generated source and can help when you&#8217;re debugging in venkman, although line numbers will be a bit off in venkman.<br />
*/</p>
<p>var newjs=&#8217;\n&#8217;+<br />
&#8216;var foo=&#8221;Howdy!&#8221;;\n&#8217;+<br />
&#8216;\n&#8217;+<br />
&#8216;function bar(foo){\n&#8217;+<br />
&#8216;  alert(foo);\n&#8217;+<br />
&#8216;}\n&#8217;+<br />
&#8216;\n&#8217;;</p>
<p>var newscript=document.createElement(&#8217;script&#8217;);<br />
newscript.setAttribute(&#8217;type&#8217;,'text/javascript&#8217;);<br />
newscript.setAttribute(&#8217;id&#8217;,'myscript&#8217;); // optional<br />
newscript.innerHTML=newjs;<br />
var head=document.getElementsByTagName(&#8217;head&#8217;).item(0);<br />
head.appendChild(newscript);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kees</title>
		<link>http://www.outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/#comment-256</link>
		<dc:creator>kees</dc:creator>
		<pubDate>Wed, 10 May 2006 00:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/#comment-256</guid>
		<description>I'm not sure I understand your question.  In firefox, via Greasemonkey, it just works.  Of course, I don't know much about rmlsweb.com.  Maybe I didn't set up the script right; I've only been using it from the perspective of RMLS search results sent to me by my agent.  (I'd don't have my own account.)

I'd be happy to take a patch if you find a better way to have it work.  Right now it just installs an override for the "ShowMap" javascript function, which is used on rmlsweb.com's search results to pop a MapQuest map.

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure I understand your question.  In firefox, via Greasemonkey, it just works.  Of course, I don&#8217;t know much about rmlsweb.com.  Maybe I didn&#8217;t set up the script right; I&#8217;ve only been using it from the perspective of RMLS search results sent to me by my agent.  (I&#8217;d don&#8217;t have my own account.)</p>
<p>I&#8217;d be happy to take a patch if you find a better way to have it work.  Right now it just installs an override for the &#8220;ShowMap&#8221; javascript function, which is used on rmlsweb.com&#8217;s search results to pop a MapQuest map.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/#comment-255</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 09 May 2006 23:23:38 +0000</pubDate>
		<guid isPermaLink="false">http://outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/#comment-255</guid>
		<description>how did you get this to work on firefox?  Did you use the IE tab extension?  Because thats the way I have it set up on my computer but your script doesn't seem to work.</description>
		<content:encoded><![CDATA[<p>how did you get this to work on firefox?  Did you use the IE tab extension?  Because thats the way I have it set up on my computer but your script doesn&#8217;t seem to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
