Skip to content

Instantly share code, notes, and snippets.

@vicariousdrama
Created November 22, 2023 21:48
Show Gist options
  • Save vicariousdrama/4e57aa4c961ce7491c053e4e58908bd8 to your computer and use it in GitHub Desktop.
Save vicariousdrama/4e57aa4c961ce7491c053e4e58908bd8 to your computer and use it in GitHub Desktop.
Nostr Nests - Javascript iframe injection
This is the basic logic to paste into the address bar to add an iframe
```js
javascript:(() => {roomname=window.location.pathname.substr(1);const iframe=document.createElement('iframe'); iframe.width='100%'; iframe.height='750'; iframe.src='https://dddice.com/room/C1vhrpm'; document.body.insertBefore(iframe, document.body.firstChild);})();
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment