50
Korvax
8y

Silicon valley season 1 - episode 10

Filename: devrewrite_v092.js

A javascript file running html code

Comments
  • 12
    Not really a fail, if you set your webserver to serve text/html type for .js file extension its perfectly possible. Or imagine an MVC framework handling all the routing, sooo
  • 4
    To be fair, URLs don't correspond to file types. In that, it could be anything at all
  • 17
    @liammartens if you look at the start of the url it is file:// and not http:// so it cant be handled by a webserver, it is just opening a js file
  • 2
    @DavidKevork alright you got me didnt notice that 😰
  • 5
    @DavidKevork So the last alternative is a custom browser
  • 1
    @edwrodrig that custom browser is massively broken then
  • 0
    @edwrodrig @asgs they are using safari browser so it isnt a custom made browser
  • 0
    @DavidKevork It is not clear in the picture. And is easy to mock your custom browser to looks like safari 8)
  • 3
    @edwrodrig actually it is chrome not safari or any custom made browser
  • 5
    @DavidKevork Download chromium source code.
    Add support to interpret js as html. Set the chrome icon.
    Compile.
    Profit!
  • 2
    still possible. take any properly functional html page and change its extension to .js. now right click and open with chrome # ta da!!!!!
  • 0
    @coldfire are you sure that works? It displays HTML as plain text to me
  • 13
    @asgs hate to say this but "works on my machine"
  • 0
    React!
  • 2
    Other possibility.
    Open an html file.
    Change the Url in location bar as you want but don't press anything.
    Take an screenshot.
    Profit.
  • 1
    Can you guys stop being critical and accept the joke?
  • 1
    @Grizzly actually, that is the joke. We take everything serious and look beyond what is visible
  • 0
    @asgs smh grammar nazis of dev rant....
Add Comment