> Eh, your English is actually not too bad, especially compared to a lot
> of my own countrymen in America. ;-)

Thank you :D

> The convention is to put the user script code beneath the metadata
> comment that Greasemonkey supplies. According 
> tohttp://wiki.greasespot.net/Greasemonkey_Manual:Metadata_Block, it
> doesn't really matter technically, but I would follow the standard and
> just put your code under the comment block.

I think I didn't explain well. My idea of greasemonkey is that it
works adding a piece of code (our user scripts) to the page what's
going to be modified.
Maybe my idea is wrong. Is it?
In case that I'm on the corret way, my question was in what place of
the page is put my user script(with the comment block included I
mean).

> Not unless you show me the code and tell me more or less what it's
> supposed to do. (I have little or no psychic debugging
> <http://blogs.msdn.com/oldnewthing/archive/2007/05/29/2955171.aspx>
> capacity. ;-))

Well, could show you the code, but I don't have a real code... I mean
that everything I have written didn't work so I have no code to
improve, continue or other... I think I'm explaing very wel if is
there, please tell me :p
At the begining I tried with that:

/*function GenRandom(_Limite){
        _Random = Math.random() * _Limite;
        _Random = Math.floor(_Random)//Math.floor es la función parte entera.
    return _Random
}

//
var n
for (n=0;n<=20;n++)
{
        _Retraso = GenRandom(3000) + 3000;//Generamos un retraso de entre 3 y
6 segundos.
        listaNueva = unsafeWindow.listaduracionimagenes;//Importamos el Array

GM_log('La longitudad de la cadena nueva es: ' + listaNueva.length)

        TiempoBase = parseInt(listaNueva[n]) * 1000;//Leemos el tiempo que
dura el anuncio
        _TiempoEspera = TiempoBase + _Retraso;//Sumamos el Retraso y la
duración del anuncio

GM_log('El tiempo de espera total será: ' + _TiempoEspera)

        _Puntuacion = GenRandom(5);//Generamos de forma aleatoria la
puntuación a dar al anuncio

GM_log('La puntuación que le vamos a dar va a ser: ' + _Puntuacion)

        setTimeOut('Puntuar('+_Puntuacion+')',_TiempoEspera);//Después del
tiempo de espera, lo puntuamos.
}
*/

But I had some problems with the unsafeWindow command. It did work in
the page I made by a copy of the source code but no in the source
page.
I have other 'tries'. If you want, I'll show you.

Thank you again!
--~--~---------~--~----~------------~-------~--~----~
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