News for hackers. Stuff that matters.
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by akerro on Monday December 19, 2016 @10:06AM (#13211796)
I showed a few people who have no idea about programming whatsoever how to hack websites to download .mp4 or .mp3 from source code of the website. How would you show them that using DOM...
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by g00gler on Monday December 19, 2016 @11:16AM (#13212342)
How would you show them that using the HTML source?

You can use dev tools to view the network tab to find whatever URL Pandora is using.

You can use dev tools to find a media elements src attribute.

To see the JavaScript sources... You check the dev tools.

If anything, in the days of JavaScript, the HTML source will missing a few things.

Re:Ask HN: Why does 'View Source' issue a new HTTP request? by recursive on Monday December 19, 2016 @11:16AM (#13212340)
If there's an audio tag, that element exists in the DOM and has a reference to the url where you can download it. Is this a trick question?
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by akerro on Tuesday December 20, 2016 @07:46AM (#13219326)
Yes, my mother doesn't know what DOM is or why there are so many buttons in devtools. ctrl+u -> ctrl+f -> mp3 is much easier to explain and repeat.
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by mullsork on Wednesday December 21, 2016 @08:48AM (#13229012)
Right but then you're talking about viewing the HTML source right? In other words "View Source." I'm asking why dev tools would need access to the original source and not the DOM. It doesn't make sense to save the original source in memory to me once it's been parsed.
Re:Ask HN: Why does 'View Source' issue a new HTTP request? by corobo on Monday December 19, 2016 @11:51AM (#13212733)
ctrl+shift+i, ctrl+f "mp4"