Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
gpnt
5y ago
0 comments
Save
Share
yes, the initiator is a valid HTML with a `<script>` pointing to the script that receives the JSON and render the page. The interesting part is you can `fetch` the page directly and it will respond a valid JSON.
0 comments
1 comments · 1 top-level
default
top
newest
oldest
bluehex
5y ago
Once that script is kicked off it can get the current body of the page (the JSON) and replace it with html with:
JSON.parse(document.body.innerText); document.body.innerText="" etc...
j
/
k
navigate · click thread line to collapse