Live data from Hacker News

Try and view the source

kurlak.com

41–50 of 86 posts

Re: Try and view the source

#44
post #23
post #2

This is why I love NoScript. Viewed it no problems and easily saw what you were doing. Pretty clever trick, thank you.

I recently learned about a similar trick that gets around NoScript: http://citeomatic.com/_asdf.html (This one only works in Firefox and Opera, not Chrome, sadly)

Nice trick. Spoiler:

  HTTP/1.1 200 OK
  Date: Mon, 19 Mar 2012 08:49:27 GMT
  Server: Apache
  Link: ;rel="stylesheet";type="text/css";media="all"
  Content-Length: 0
  Connection: close
  Content-Type: text/html; charset=UTF-8

Re: Try and view the source

#47
In Chrome at least, it also breaks going back to the cached page after first view using back/forward navigation. (Try clicking the link from HN, go "back", then go "forward" again.) This might be obvious to people who know anything about browser caching, but I thought it was kinda interesting.

Re: Try and view the source

#48
post #21
post #19

Right click - Inspect Element (from Chrome) did work for me.

That's actually not viewing the page source though. That's viewing the current DOM state. If the author was more clever he could have left you a little note to that effect.

Yup -- I went (in Mozilla) to the Web Developer plugin's "View Generated Source", which works but likewise is cheating.

Re: Try and view the source

#49
I hit F12 in Chromium, dev tools open with the tree, knowing that I'm viewing the DOM and not the source I hit the Resources tab, and there is the source.

Not a problem at all.

In fact, I had to remember to go back to right clicking and View Source to try and figure out why this was so highly ranked and lots of the comments confused me.

Now I see why... but just like using JavaScript to try and detect right click, using replace state to try and obscure the source isn't likely to be effective in any reasonable way. I guess that's not the point, that this is more fun than anything someone will do, except... I bet someone does it on their live site.

Post reply on HN