You are viewing a single comment's thread from:

RE: Programming Diary #6: A barebones browser extension for Steem curation

in #programming2 years ago

Very good idea!
I had already thought about integrating something similar into my site (https://moecki.online).
I have not yet programmed a browser extension either. This is a good option for users who trust the extension. But I think it would be better to integrate this signalling into the condenser.
For example, posts that are paid out 100% in SP will show this sign: grafik.png
Such an icon could also be displayed for posts with a beneficiary to @null.

Figure out why highlighting doesn't get applied when I scroll further down in the feed

With infinite scrolling, the "new" posts are dynamically added to the page via javascript when a certain area of the page is reached. It may be that the extension then has to be triggered again so that the "new" posts are also detected.

Sort:  

Seems like this was it, basically:

With infinite scrolling, the "new" posts are dynamically added to the page via javascript when a certain area of the page is reached. It may be that the extension then has to be triggered again so that the "new" posts are also detected.

I turned the whole thing into a function, then added an event listener to run it whenever a window scroll event is encountered, and now it's highlighting posts further down in the list.

Many things are possible with Javascript. :-)
I will have to learn a bit more about Javascript in the future, because some things cannot be done (reasonably) on the server side.

I started playing with javascript back in the '90s, but then my job changed an I didn't keep up with it. Missed opportunity there. ;-)

I'm only scratching the surface so far with this browser extension, but I think it's actually a pretty good learning project. If I keep learning, I'm sure I'll eventually want to throw it all away and redo it "the right way."

Missed opportunity there. ;-)

Who could have guessed back then that Javascript still had such potential? Since I used to do a lot with Java, I smiled a little at Javascript, but now Javascript has clearly overtaken Java in some aspects.

I'm only scratching the surface so far with this browser extension

Me too! But that's not a bad thing from my point of view. As long as it's fun.

I'm sure I'll eventually want to throw it all away and redo it "the right way."

I'll probably be at that point when I've really got into CSS ;-)

I started playing with javascript back in the '90s, but then my job changed an I didn't keep up with it. Missed opportunity there. ;-)

I'm only scratching the surface so far with this browser extension, but I think it's actually a pretty good learning project. If I keep learning, I'm sure I'll eventually want to throw it all away and redo it "the right way."

I think it would be better to integrate this signalling into the condenser.

I agree that the browser extension isn't the best way to do it. It's just the quickest way I could think of without needing to rely on someone else.

Long term, I think a separate curator's tool, or curation mode in Condenser would be ideal. The things that a curator wants to see aren't necessarily the same things that a casual reader would want to see.

@moecki
The web interface is very good. I don't know, I'm not a programmer, but I also want to learn how to make something like this.

Screenshot_20220531-114627.png

Thank you! It's nice to see the page in foreign device :-)
As you see, there is still a lot to do. For example date and time are still in german and other things... That's why I haven't advertised it widely yet. Even if it already works with other communities...

I agree with @aafadjar. It does look like a nice interface. I was wishing I could speak German when I visited the link the other day!

You're welcome.
Although still in German, but it looks interesting.
Hopefully one day, it will also be available in an English version.

Apart from the date, only the posts are in german.
Look at https://moecki.online/hive-160342 for "your" community :-)

My newest version on the dev-server already has several improvements. Now the date-strings are in english... I will soon transfer it to the public server.

wow..
It makes it very easy for me when looking for the newest posts in the community.

I have also tried to see the display for the steem sea community
https://moecki.online/hive-103393.

Wow, that's also very interesting.

Thank you

the newest posts

...and the newest comments. :-)) nearby the reply count.

Soon it will look even better :-)

I also really like the display of community member activity statistics for the last 7 days.


Tangkapan layar_20220603-040216.png


Thank you @moecki for sharing your great work..