You are viewing a single comment's thread from:

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

in #programming2 years ago

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.

Sort:  

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."

Coin Marketplace

STEEM 0.22
TRX 0.20
JST 0.035
BTC 91285.68
ETH 3152.90
USDT 1.00
SBD 3.09