5 ms·
That would be really nice. I'm storing the thread IDs in cookies, so I have a list of them. But I'm not storing the thread titles. If I do, the cookie might get
by waleedka 19y ago
That would be really nice. I'm storing the thread IDs in cookies, so I have a list of them. But I'm not storing the thread titles. If I do, the cookie might get big if you track a lot of threads. And, since cookies are sent to the server on every request, a big cookie could affect performance (although it's probably not noticeable at all on broadband). I'll have to think more about it. And, maybe check if I can have the cookies be set to client-only. If that's doable, it'll solve the problem.
- akkartik 19y agoWhat you really need is a greasemonkey plugin :)
- waleedka 19y agoIt's worth mentioning here that akkartik has built a really cool tool that shows the changes on any web page since the last time you visited it. And, it works automatically because it's a plugin, not a bookmarklet. Check it out: http://hystry.com/ http://hystry.com/
- akkartik 19y agoI just pushed all the javascript into a .user.js file and put in the correct header, and got a working greasemonkey plugin: http://akkartik.name/newsyc-comment-tracker.user.js http://akkartik.name/newsyc-comment-tracker.user.js Wow! Currently autoadds every comment thread you ever visit. I'll add support for seeing monitored threads now, and maybe deleting some threads if others want that. It's still Waleed's baby, though.
- waleedka 19y agoSuper. Thanks akkartik. Can't wait to see the monitored threads list, that would be awesome.
- akkartik 19y agoDone. http://akkartik.name/newsyc-comment-tracker2.user.js http://akkartik.name/newsyc-comment-tracker2.user.js
- waleedka 19y agoWow, very nice. Althogh my 'break time' link is gone :(. But, still, I really like it. Thanks a bunch.
- waleedka 19y agoOne little feature request. Can you list the threads in descending order by time of visit? This way, the ones I visit last show at the top. I think it can be done if you attach the time-stamp to the cookie, and then order by it.
- akkartik 19y agoYeah, let me look into it. New version with delete by cookie. http://akkartik.name/newsyc-comment-tracker3.user.js http://akkartik.name/newsyc-comment-tracker3.user.js
- akkartik 19y agoBugfix: delete should work properly now.
- waleedka 19y agoAwesome. I just updated the blog post to mention your plugin and link to the latest script.
- akkartik 19y agoGreat. Thanks for your kind words. Update about sorting the links by access time: my sorting-fu on javascript isn't that great, and it doesn't seem as easy as in perl/python/ruby. A second complication: I currently have code in there to watch out for duplicate cookies in case somebody upgraded to the script after using your bookmarklet for a while. I'll pull that code out in a few days. That should make the sorting code simpler.