<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Hi...
I really find this script useful... so I have added support for ehow.com videos. Maybe the author cares to integrate?

Around line 129 add...
else if (host.match(/ehow\./i) != null)        {mediahost = 'eHow'}

and add this case to the function extracturls()...

  case 'eHow':

   embmedia = document.getElementById('VideoEmbed');
   if (embmedia != null) {
    source = unescape(embmedia.getAttribute('value'));
     if (source.match(/flashvars=\&quot;id=/i) !== null) {
      urlstart = source.indexOf('flashvars=\&quot;id=')+14;
      urlend = source.indexOf('.flv',urlstart)+4;
      source = in2html(source.substring(urlstart,urlend));
      filetype = '(.flv)';
	  fileURL[fileURL.length] = urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
     }

    }
   insert_button();
   break;</body>
  <body-html>&lt;p&gt;Hi...
&lt;br /&gt;I really find this script useful... so I have added support for ehow.com videos. Maybe the author cares to integrate?&lt;/p&gt;

&lt;p&gt;Around line 129 add...
&lt;br /&gt;else if (host.match(/ehow\./i) != null)        {mediahost = 'eHow'}&lt;/p&gt;

&lt;p&gt;and add this case to the function extracturls()...&lt;/p&gt;

&lt;p&gt;  case 'eHow':&lt;/p&gt;

&lt;p&gt;   embmedia = document.getElementById('VideoEmbed');
&lt;br /&gt;   if (embmedia != null) {
&lt;br /&gt;    source = unescape(embmedia.getAttribute('value'));
&lt;br /&gt;     if (source.match(/flashvars=\&quot;id=/i) !== null) {
&lt;br /&gt;      urlstart = source.indexOf('flashvars=\&quot;id=')+14;
&lt;br /&gt;      urlend = source.indexOf('.flv',urlstart)+4;
&lt;br /&gt;      source = in2html(source.substring(urlstart,urlend));
&lt;br /&gt;      filetype = '(.flv)';
&lt;br /&gt;	  fileURL[fileURL.length] = urlstra+source+urlstrb+mediahost+urlstrc+filetype+urlstrd;
&lt;br /&gt;     }&lt;/p&gt;

&lt;p&gt;    }
&lt;br /&gt;   insert_button();
&lt;br /&gt;   break;&lt;/p&gt;</body-html>
  <created-at type="datetime">2009-07-30T12:26:40Z</created-at>
  <forumable-id type="integer">4037</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">152338</id>
  <topic-id type="integer">31792</topic-id>
  <updated-at type="datetime">2009-07-30T12:26:40Z</updated-at>
  <user-agent>Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1</user-agent>
  <user-id type="integer">101734</user-id>
</post>
