Replying to Avatar Leo Wandersleb

Sentiment analysis as bookmarklet. Yeah, that is fun! :D

https://v.nostr.build/yRLOqslc6tW7kZQl.webm

So what's going on here ... I load my timeline and click a bookmark which runs some far from perfect code but for me the key observations are: It's fast. It's somewhat useful in its results. It's probably quite cheap. ppq won't show me the price as it's less than 0.1ct or probably less than 0.05ct.

noStrudel unloads and loads a lot of stuff, forgetting past tagging so there are many aspects that need work but I'll keep that Bookmarktlet around to maybe improve it in the future.

nostr:nevent1qvzqqqqqqypzq3huhccxt6h34eupz3jeynjgjgek8lel2f4adaea0svyk94a3njdqy88wumn8ghj7mn0wvhxcmmv9uq3uamnwvaz7tmwdaehgu3dwp6kytnhv4kxcmmjv3jhytnwv46z7qpqjrkyqf58ufvze25vpfkrcpq6uewka9m6jpg3xf8wl8854eq70xpqrljyce

I love this. reminds me of user scripts

I'm probably not going to implement a specific API into the app but I added a new option to the app privacy settings

It adds a "window.noStrudel" object to the page that should allow you to access the eventStore if you want to get the full event

For example:

noStrudel.eventStore.getEvent('21f09fb9cfa0fbf7edbfb6e9b658782d794596b80dbbfc68fc6ad754e16256b8')

This is only on the next version for now https://npub1wyuh3scfgzqmxn709a2fzuemps389rxnk7nfgege6s847zze3tuqfl87ez.nsite.lol

Reply to this note

Please Login to reply.

Discussion

That should come in handy if I continue work on this.

"next" is developed on nsite now?

How would I get the raw events that are currently displayed using window.noStrudel?

yes, I'm thinking about removing next.nostrudel.ninja and moving it over to nsite. I want to promote nsite and it might be less confusing when making a distinction between the versions

To get the event for something on the screen. most DOM elements have a data-even-id attribute. so you can do "noStrudel.eventStore.getEvent(.dataset.eventId)"

https://npub1wyuh3scfgzqmxn709a2fzuemps389rxnk7nfgege6s847zze3tuqfl87ez.nsite.lol/ doesn't work for me right now. I get an empty document.

yeah something is either broken with my blossom server or my nsite host... 😞