<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Fri, 12 Mar 2010 03:50:35 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike</title>
		<link>http://www.outflux.net/blog/archives/2006/04/09/greasemonkey-for-rmls/comment-page-1/#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&#039;t start its work until after a page has fully loaded, I don&#039;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&#039;re debugging in venkman, although line numbers will be a bit off in venkman.
*/

var newjs=&#039;\n&#039;+
&#039;var foo=&quot;Howdy!&quot;;\n&#039;+
&#039;\n&#039;+
&#039;function bar(foo){\n&#039;+
&#039;  alert(foo);\n&#039;+
&#039;}\n&#039;+
&#039;\n&#039;;

var newscript=document.createElement(&#039;script&#039;);
newscript.setAttribute(&#039;type&#039;,&#039;text/javascript&#039;);
newscript.setAttribute(&#039;id&#039;,&#039;myscript&#039;); // optional
newscript.innerHTML=newjs;
var head=document.getElementsByTagName(&#039;head&#039;).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-page-1/#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&#039;m not sure I understand your question.  In firefox, via Greasemonkey, it just works.  Of course, I don&#039;t know much about rmlsweb.com.  Maybe I didn&#039;t set up the script right; I&#039;ve only been using it from the perspective of RMLS search results sent to me by my agent.  (I&#039;d don&#039;t have my own account.)

I&#039;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 &quot;ShowMap&quot; javascript function, which is used on rmlsweb.com&#039;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-page-1/#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&#039;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>
