Sixth Attempt
Above is what you get in the console after clicking the first three nodes. While the first two of them really expanded (changing from plus to minus), the last one (aesthetic sensitivity) did not.
Hm, well.. it seems some relative URLs still need to be converted to absolute. But they must be in the scripts, because all the URLs in the page are already converted. In fact, if we look at the last file onLoad.js, we soon discover a pattern like this:
{[ .disco-pattern | 1.hilite(=javascript=) ]}
That is what is causing us troubles, and the pattern occurs again and again also in the other scripts. To solve this problem, the plan is to intercept all ajax calls and if they entail a URL containing ajax/ajaxCalls.php then we redirect them to $.proxyGet().
My sixth attempt (open in jsFiddle):
{[ .disco-attempt6 | 1.hilite(=javascript=) ]}
produced this result:
Well, all of the above is true and should work not only in jsFiddle but also in any other Online JavaScript IDE [1]. But if you have Google Chrome, forget about all those tricks and use its Custom JavaScript Snippets [2] feature instead. It just works. It’s like having the power you get when developing extensions right from the console.
1: http://en.wikipedia.org/wiki/Online_JavaScript_IDE
2: https://developer.chrome.com/devtools/docs/authoring-development-workflow#snippets