Anthony, The app is a home broker, you will have no easy access to the code,
i think. I want to change the frenetic blinking colors. Fracture, function
manipulate was replaced, but the HB do not shows nothing more (quotes).
My test script:
window.addEventListener("load", function(e) {
var func = unsafeWindow.manipulate.toString();
func = func.substring(func.indexOf('{') + 1, func.lastIndexOf('}') - 1);
func = func.replace('#FFCC00', '#FFFFFF');
unsafeWindow.manipulate = new Function("strSymbol", "objItem",
"objUpdate", func);
}, false);
[]´s Roberto
On Mon, Apr 12, 2010 at 6:11 PM, Fracture <[email protected]> wrote:
> The only way to modify the local variable would be to overwrite the
> function with your own custom one. You might do something like this:
>
> var func = unsafeWindow.app.manager.update.manipulate.toString();
> func = ... //remove parameter line and last }
> func = func.replace('strBgCol = "#0000FF"', 'strBgCol = "#FFFFFF"');
> unsafeWindow.app.manager.update.manipulate = new Function("strSymbol",
> "objItem", "objUpdate", func);
>
>
> On Apr 12, 3:11 pm, Roberto Nemirovsky <[email protected]> wrote:
> > I'm sorry, it was a mistake. Only the first code (<SCRIPT ...>) is HTML.
> >
> > About the javascript, strBgCol is a local variable. This is my
> > question, strBgCol can be changed?
> >
> > Roberto
> >
> > On Mon, Apr 12, 2010 at 2:45 PM, Fracture <[email protected]> wrote:
> >
> > > > In this there is the following HTML code:
> >
> > > This isn't HTML, this looks like malformed javascript.
> >
> > > > app.manager.update =
> > > > (
> > > > ...
> > > > manipulate function (strSymbol, objItem, objUpdate)
> > > > ...
> > > > strBgCol var = "#0000FF";
> > > > ...
> > > > )
> >
> > > Did you mean:
> >
> > > app.manager.update =
> > > {
> > > ...
> > > manipulate: function(strSymbol, objItem, objUpdate) {...},
> > > ...
> > > strBgCol: "#0000FF",
> > > ...
> > > }
> >
> > > > Manipulate function is called several times, and my need is to change
> the
> > > > variable value strBgCol. Is it possible?
> >
> > > If strBgCol is a property of app.manager.update and not a local
> > > variable in the manipulate function, yes:
> >
> > > unsafeWindow.app.manager.update.strBgCol = "#FF00FF"; //or whatever
> >
> > > But this is unsafe
> >
> > >http://wiki.greasespot.net/UnsafeWindow
> > >http://wiki.greasespot.net/Category:Coding_Tips:Interacting_With_The_.
> ..
> >
> > > --
> > > 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]<greasemonkey-users%[email protected]>
> <greasemonkey-users%[email protected]<greasemonkey-users%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/greasemonkey-users?hl=en.
> >
> >
>
> --
> 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]<greasemonkey-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/greasemonkey-users?hl=en.
>
>
--
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.