Vitor Pamplona on Nostr: Instead of including a domain+file name, <script type="text/javascript" ...
Instead of including a domain+file name,
<script type="text/javascript" src="path-to-javascript-file.js"></script>
We would do this:
<script type="text/javascript" src="nostr:eventID"></script>
Published at
2023-07-15 16:35:56Event JSON
{
"id": "35094e47c0a08b26cd11cf728c7377db74cbb9265864207fbea89cd4bf488abb",
"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
"created_at": 1689438956,
"kind": 1,
"tags": [
[
"e",
"2bbc0bd861b22a02f82162d3571fadfb08af52562a6d7869f03952eb085c9568",
"",
"root"
],
[
"e",
"e38f9ca0abc27339eb714120fcee831318aa751910c5c69aca1c5ffadaf6584d",
"wss://nostr.bitcoiner.social/",
"reply"
],
[
"p",
"c31e22c3715c1bde5608b7e0d04904f22f5fc453ba1806d21c9f2382e1e58c6c"
],
[
"p",
"9fec72d579baaa772af9e71e638b529215721ace6e0f8320725ecbf9f77f85b1"
],
[
"p",
"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700"
]
],
"content": "Instead of including a domain+file name, \n\n\u003cscript type=\"text/javascript\" src=\"path-to-javascript-file.js\"\u003e\u003c/script\u003e\n\nWe would do this: \n\n\u003cscript type=\"text/javascript\" src=\"nostr:eventID\"\u003e\u003c/script\u003e",
"sig": "ae4f11795788d5360dd17da519d5e2b1ffa678a9afbd69cff9d2c7893f82d7848f09604b52327e46228946db30c037d8b29530c1bc3cabdf4ebeeb1c9d21824c"
}