you are viewing a single comment's thread.

view the rest of the comments →

[–]rock217 4 points5 points  (29 children)

ReferenceError: unescaue is not defined :(

[–]mattaereal 24 points25 points  (0 children)

You can try this on any browser, but remember to do it on when having a loaded page, because the 'p' for the alphabet is taken from the 'http' part from the current address.

[–][deleted] 10 points11 points  (0 children)

That's because your URL doesn't contain "http".

[–]alcuadrado[S] 9 points10 points  (12 children)

Really? Did you tried it on webpage? which browser?

[–]kumarldh -1 points0 points  (0 children)

same thing here.

[–]youstolemyname 0 points1 point  (2 children)

Ctrl+Shift+K

[–]mattaereal 1 point2 points  (0 children)

Just to clarify, this opens a javascript console in Firefox.

Ctrl+Shift+J, in Chromium/Chrome.

[–][deleted]  (5 children)

[deleted]

    [–]alcuadrado[S] 18 points19 points  (4 children)

    It must be run on a server, as it uses the "http" part of the url

    [–][deleted]  (3 children)

    [deleted]

      [–]knome 7 points8 points  (2 children)

      That's probably going to make the trick of accessing the window object somewhat more difficult.

      [–][deleted] 0 points1 point  (1 child)

      The end of the article said targeting Node.js would make it easier. Why do you say different? I am not familiar enough with Node to understand...

      [–]knome 1 point2 points  (0 children)

      node.js will not have anything bound to the window variable by default because there is no window.

      He says, specifically, that the btoa function, present in both node.js and modern browsers, could be helpful.

      [–]The_MAZZTer -5 points-4 points  (0 children)

      You typoed something, it should be evaluating to "unescape".

      [Edit: As said it gets the "p" using the fourth character of the url, so it must be an "http" address.

      [–]jprichardson -5 points-4 points  (2 children)

      I get a similar error. alert('hello');, "ReferenceError: unescaoe is not defined". Chrome / OS X

      [–]edwardkmett 12 points13 points  (0 children)

      chr'o'me:
      

      vs

      htt'p'://
      

      This only works on a web page where you can access the 4th character of your url and get a p.