Open Javascript

9 views
Skip to first unread message

LuKa Lu

unread,
Dec 5, 2016, 9:46:12 AM12/5/16
to Google Chrome Developer Tools
Hello Guys

I have a Website (clickclickclick.click) where I have to get achievements. When I open up the Sources it shows me the JavaScript "bundle.js". There is a Variable called "achievements". Now my question: Can I change the value of that variable via the chrome console? If yes, how?


PhistucK

unread,
Dec 5, 2016, 9:50:18 AM12/5/16
to Google Chrome Developer Tools
In many cases, it is possible. The usual case is just to type -
achievements = {score: 1} // I just made up the object structure. You should use the proper structure and values.
And press Enter.

If that does not work, you might be able to pause on a breakpoint in code that has the achievements variable in its scope/closure and then change it.

However, you should have some web development knowledge in order to do that (if you have it, you will probably easily find your way). This group is not really for non-web-developers.


PhistucK

On Mon, Dec 5, 2016 at 4:40 PM, LuKa Lu <loes...@gmail.com> wrote:
Hello Guys

I have a Website (clickclickclick.click) where I have to get achievements. When I open up the Sources it shows me the JavaScript "bundle.js". There is a Variable called "achievements". Now my question: Can I change the value of that variable via the chrome console? If yes, how?


--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/d3e73720-ec2c-4c5a-99e4-2c8176a836f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages