Skip to content

Instantly share code, notes, and snippets.

@pgebheim
Created September 8, 2019 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgebheim/1d94a29e54b5f13476333a1a07b24174 to your computer and use it in GitHub Desktop.
Save pgebheim/1d94a29e54b5f13476333a1a07b24174 to your computer and use it in GitHub Desktop.
<html>
<head>
<script>
(async function() {
const root = "/ipfs/QmUXswSSMxd6oZyT7ViCo6KGLraVgiYZ3jtctp34bKEF2F/?ethereum_node_http=https%3a%2f%2feth-mainnet.alchemyapi.io%2fjsonrpc%2f7sE1TzCIRIQA3NJPD5wg7YRiVjhxuWAE&augur_node=wss%3a%2f%2ftheaugurnode.com%2faugur-node#!/markets";
const data = await fetch(root);
const el = document.createElement('html');
el.innerHTML = await data.text();
window.resEl = el;
document.head.innerHTML += el.querySelector('head').innerHTML;
document.body.innerHTML = el.querySelector('body').innerHTML;
el.querySelectorAll('script').forEach((s) => {
const ns = document.createElement('script');
ns.src = s.src;
document.head.appendChild(ns);
});
el.querySelectorAll('script').forEach((s) => {
const ns = document.createElement('script');
ns.src = s.src;
document.body.appendChild(ns);
});
})().then(res => {});
</script>
<base href="/ipfs/QmUXswSSMxd6oZyT7ViCo6KGLraVgiYZ3jtctp34bKEF2F/?ethereum_node_http=https%3a%2f%2feth-mainnet.alchemyapi.io%2fjsonrpc%2f7sE1TzCIRIQA3NJPD5wg7YRiVjhxuWAE&augur_node=wss%3a%2f%2ftheaugurnode.com%2faugur-node#!/markets">
</head>
<body>Loading Augur</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment