On 09/16/09 06:35, elfio wrote:
> This was my code:
> 
>       codigoNuevo = document.createElement("script");
>       codigoNuevo.innerHTML = '<script>' +
>       'Silenciar()' +
>       '</script>';// Entre las comillas escribimos el codigo a introducir
>       document.body.insertBefore(codigoNuevo, document.body.lastChild);

Very close.  But because you created a script node, you do not want the 
"<script>" tag inside it.  And in this case, .textContent would be 
better than .innerHTML.

Especially if you want to just call one function, though, there's 
another way that might be easier:

http://wiki.greasespot.net/Location_hack


--~--~---------~--~----~------------~-------~--~----~
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