[Greasemonkey] e4x (say horray)

Aaron Boodman zboogs at gmail.com
Thu Sep 8 14:02:31 EDT 2005


Oh I assumed you meant 1.0.4 as well. Yes, definitely works in 1.4

-- 
Aaron

On 9/8/05, Edward Lee <edilee at gmail.com> wrote:
> Aha, it does indeed work in Firefox 1.4.
> 
> Works:
> javascript:(function(d,s,t){t=d.createElement('script');t.type='text/javascript;e4x=1';t.innerHTML=s;d.body.appendChild(t)})(document,'alert(<r><foo>bar</foo></r>.foo)')
> 
> It seems like you have to explicitly specify the type to be
> text/javascript;e4x=1 because using a data uri of content type
> text/javascript;e4x=1 doesn't work.
> 
> Fails:
> javascript:(function(d,s){d.body.appendChild(d.createElement('script')).src=s})(document,'data:text/javascript;e4x=1,'alert(<r><foo>bar</foo></r>.foo)'')
> (Gives syntax error.. probably because it defaults to javascript
> instead of checking the data uri type)
> 
> (Oh, and no, I'm not running 1.0.4. Mozilla/5.0 (Macintosh; U; PPC Mac
> OS X Mach-O; en-US; rv:1.8b4) Gecko/20050907 Firefox/1.4)
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list