0

I'd like to do this in Chrome Developer Tools, but I'd take anything at this point.

The question

If I know I am looking for a specific object, how can I search the entire JS hierarchy to find it?

The situation

In know from my time on irc://irc.freenode.net/bash that when people reduce their question to what they think they should do, they waste a lot of time.

I use Confluence Cloud and their WYSIWYG is terrible. Because it is TinyMCE, I can get a lot done by editing the DOM in the Chrome Developer Tools. I ought to be able to hack the JS object and get even more through. But, the first step is the find the TinyMCE.settings object.

2

1 Answer 1

0

If you've got a reference to the object's constructor, the queryObjects() API might be able to help you locate the object. You might need to set a breakpoint and pause the code at a point where you know that the object still exists in the heap.

Check what version of Chrome you're using at chrome://version. queryObjects() was introduced in Chrome 62, which should be hitting Stable right about now but you might not have it quite yet.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.