Show HN: Disabling View Source in Firefox and Edge(no-source.github.io)
no-source.github.io
Show HN: Disabling View Source in Firefox and Edge
https://no-source.github.io/
5 comments
For the lazy, here's the magic:
When I view source in Firefox I get the URL "view-source:wyciwyg://0/https://no-source.github.io/" which gives me the "view source disabled" message.
But if I then manually edit that in the location bar to "view-source:https://no-source.github.io/" I can view the source as expected.
But if I then manually edit that in the location bar to "view-source:https://no-source.github.io/" I can view the source as expected.
Neat. How do people even discover a hack like this?
In this case, I was trying to use `document.open()` to replace the document with some text for debugging, and I noticed some strange side effects. :) The starting point was here: https://stackoverflow.com/questions/39233344/does-javascript...
Also doesn't work in Safari 11.0.3.