i'm wiring chrome extension needs able detect whenever thread on 4chan has been updated (threads autoupdate). i've tried using mutationobserver, being set off many times (4chan thread pages change variety of reasons outside of new posts, including hovering over/expanding images, viewing post replies, opening reply dialog, etc.)
i'm @ work, can't visit 4chan more :^)
but, should find out distinguishing class or attribute of each post, e.g. using chrome's inspect, store last post id (i.e. dubs, trips, quads-meter), , on each mutation event, check if last post id matches previous post id, determine whether there has been new posts.
there more efficient way detect posts, should job fine, if you're familiar mutationobserver.
Comments
Post a Comment