There was a typo on line 47 of the script: there's no '+' operator concatenating the y variable to the rest of the <iframe> HTML, so it gives a syntax error. Actually, there's another typo on that line, which is that the attribute value quoting is unclosed. Correct is more like this (using the function's parameter properly, too):

div.innerHTML = '<iframe src="http://www.icedivx.com/video.php?vurl=";' + url + 
'"></iframe>';

Just as a point of interest... did you see any messages in the Error Console regarding this syntax error?

I cleaned up the script with http://jsbeautifier.org/ and ran it through http://www.jslint.com/ to check for errors (although I haven't actually tried it out on the MegaUpload site). Then I cleaned up the structure a lot (using regexp literals, cleaner conditionals, etc). There's a forked gist at http://gist.github.com/326393. Hope this helps clarify it.

On 2010-03-08 19:44, Ryan Getz wrote:
im so confused as to why this isnt working, i have been trying many other variables to no avail.I went another route, and have gotten closer to my objective using the "Iframe injector" script, but am having trouble combining it with the "find megaupload direct link" script. i need ithe megaupload direct link script to pass the "y" variable to the end of the "iframe.src =" variable in the iframe injector script. any help is greatly appreciated.

Thank you to all of you that have helped me so far.

Ryan

On Mon, Mar 8, 2010 at 5:15 PM, Ryan Getz <[email protected] <mailto:[email protected]>> wrote:

    Alright i have signed up for Github.com and got everything setup
    here is the direct link http://gist.github.com/326029 i have
    included the main script i have been working on, that i cannot get
    to inject the div/iframe and come up with anything showing. So, I
    put a code that i have found that works to inject a div/iframe and
    works wonderfully, i just need to pass the "Y" variable to the end
    of the .Src address.

    Lemee know!

    Ryan

--
cc | pseudonymous |<http://carlclark.mp/>


--
? A Clean House Is A Sign Of A Misspent Life ? http://tagzilla.mozdev.org v0.066

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to