Skip to content

Commit d7cf8a2

Browse files
committed
Debug
1 parent 3f5fe6c commit d7cf8a2

1 file changed

Lines changed: 12 additions & 33 deletions

File tree

nostr-no-bullshit.html

Lines changed: 12 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
body { padding-left: 6rem; padding-right: 6rem; padding-top: 1rem; padding-bottom: 5rem; }
99
textarea { width: 50%; min-height: 8rem; }
1010
details { border: 0.1rem dashed #222; padding: 0.5rem; }
11+
pre { padding-left: 6rem; }
1112
</style>
1213
<script>
1314
const TIMEOUT = 7000
@@ -149,8 +150,13 @@
149150
example.hash = "#content=wss://theforest.nostr1.com,wss://relay.primal.net&blossom=https://blossom.primal.net&append=0"
150151
$("example").href = example
151152

152-
setTimeout(() => {
153+
setTimeout(async () => {
153154
if (window.nostr) {
155+
try {
156+
await window.nostr.getPublicKey()
157+
} catch (e) {
158+
console.log(e.message || String(e))
159+
}
154160
$("publish").disabled = false
155161
$("refresh").disabled = true
156162
}
@@ -193,69 +199,42 @@ <h1>No bullshit, <i>safe</i>, and <i>reliable</i> <a href="https://en.wikipedia.
193199

194200
<b>4.</b> Open <i>this</i> page on Desktop/Laptop → install <a href="https://github.com/dsbaars/bunker46-extension#readme" target="_blank">Bunker46</a> → click on the extension icon → paste the Bunker URI copied from Amber → [Connect] → <button id="refresh" onclick="location.reload()">Refresh</button> this page.<br><br>
195201

196-
<b>5.</b> <button id="publish" disabled>Publish</button> your relay/server lists.<br><br>
202+
<b>5.</b> <button id="publish" disabled>Publish</button> your relay/server lists.
203+
<pre id="status"></pre>
197204
<details>
198205
<summary>Or select them manually first if you know what you're doing.</summary>
199206
<br>
200207
Content Relays:<br>
201208
<textarea id="content">
202209
wss://nos.lol
203-
wss://nostr-01.yakihonne.com
204-
wss://nostr.data.haus
205-
wss://relay.ditto.pub
206-
wss://relay.dreamith.to
207-
wss://relay.momostr.pink
208-
wss://relay.mostr.pub
209-
wss://relay.nmail.li
210210
</textarea><br>
211211

212212
DM Relays:<br>
213213
<textarea id="dm">
214-
wss://auth.nostr1.com
215-
wss://chat.wisp.talk
216-
wss://relay.ditto.pub
217-
wss://relay.dreamith.to
218-
wss://relay.nmail.li
214+
wss://nos.lol
219215
</textarea><br>
220216

221217
Marmot Key Package Relays:<br>
222218
<textarea id="keypackage">
223219
wss://nos.lol
224-
wss://relay.0xchat.com
225-
wss://relay.ditto.pub
226-
wss://relay.nmail.li
227-
wss://relay.primal.net
228220
</textarea><br>
229221

230222
Search Relays:<br>
231223
<textarea id="search">
232-
wss://nostr.polyserv.xyz
233-
wss://nostr.wine
234-
wss://relay.ditto.pub
235-
wss://relay.noswhere.com
236224
wss://search.nos.today
237225
</textarea><br>
238226

239227
Blossom Servers:<br>
240228
<textarea id="blossom">
241-
https://blossom.data.haus
242229
https://blossom.ditto.pub
243230
</textarea><br>
244231

245232
Publish Relay Lists to:<br>
246233
<textarea id="profile">
247-
wss://directory.yabu.me
248-
wss://indexer.coracle.social
249-
wss://profiles.nostr1.com
250-
wss://purplepag.es
251-
wss://relay.ditto.pub
252-
wss://relay.dreamith.to
253-
wss://relay.nos.social
254-
wss://sendit.nosflare.com
255-
wss://user.kindpag.es
234+
ws://127.0.0.1:10547
256235
</textarea><br>
257236
</details>
258-
<pre id="status"></pre>
237+
<br>
259238
<b>6.</b> Use <a href="https://armada.buzz" target="_blank">Armada</a> Nostr client (also available as an <a href="http://armadahvhvaj57ojv7mavkqaecdajzejansfiksp5mdscczyh5g7stid.onion" target="_blank">onion service</a>) for private/group chats:<br><br>
260239
- use "Log in with Extension" in the Armada <i>browser</i> page<br>
261240
- use "login with Amber" button in the Armada <i>Android</i> app<br>

0 commit comments

Comments
 (0)