Let me clarify something here: on that site there is a json file which will
be downloaded to your browser with some ajax request. You want to modify
the returned json data (change false to true everywhere) whenever that json
file comes to your browser, don't you? If that's true, have you looked at
http://api.jquery.com/ajaxSuccess/? Not sure if this event handler is
called before the success method of your $.getJSON. If it isn't, then you
can find the success method for your $.getJSON (there must be one
somewhere, because that $.getJSON returns a promise and if that promise is
not used then the $.getJSON doesn't make sense) and wrap that success
method in your function (we'll talk about it more if that is the case).

On Thu, Oct 23, 2014 at 1:54 AM, Joe Taylor <[email protected]> wrote:

> A site that I'm using contains a JavaScript file, inside the file it
> contains a code with JSON and goes like this:
>
> $.getJSON(API_URL + getSubdomain() + "/values");
>
> The data file contains the code:
>
> {"has_clicked_all":false,"has_clicked_already":false,"buttons":
> [{"id":3922,"name":"button3992","has_clicked":false},
> {"id":4613,"name":"button4613","has_clicked":false},
> {"id":4339,"name":"button4339","has_clicked":false},
> {"id":4340,"name":"button4340","has_clicked":false},
> {"id":4341,"name":"button4341","has_clicked":false},
>     {"id":4622,"name":"button4622","has_clicked":false},
> {"id":4623,"name":"button4623","has_clicked":false},
> {"id":4828,"name":"button4828","has_clicked":false},
>     {"id":4829,"name":"button4829","has_clicked":false},
> {"id":4861,"name":"button4861","has_clicked":false}]}
>
> What I'm wanting to do is change all the value's to true without clicking
> on all of the buttons. I've tried doing a lot of research and spent 4 hours
> figuring out how I could do this and me being very new to all this just
> leaves me stuck... I just need someone to give me a hand it would be
> greatly appreciated. Thankyou!
>
> --
> You received this message because you are subscribed to the Google Groups
> "greasemonkey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/greasemonkey-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to