terminal.js (GitHub)

Open the console to begin. For reference, here
is the DOM structure of this page:

<pre>
    <!-- ... -->
</pre>
<div>
    <b></b>
    <i>
        <span></span>
        <br/>
    </i>
</div>

–––––––––––––––––––––––––––––––––––––––––––––––

Type pwd and hit ENTER.
> body
> ▶[<body>…</body>]

Type cd('div') and hit ENTER.
> body > div:nth-child(1)
> ▶[<div>…</div>]

Type ls and hit ENTER.
> b
> i
> [<b></b>, ▶<i>…</i>]

Type cd('html') and hit ENTER.
> html
> ▶[<html>…</html>]

Type rm('b') and hit ENTER.
(<b></b> elements are removed.)
> ▶[<html>…</html>]

Get it yet? Enjoy.

— Adam Schwartz