I've been working on something that I feel like sharing now. I don't like the way the DIC Subscribed Threads page works. If you have lots of subscribed threads, you have to scroll through all of them to find ones with new posts, because they seem to be ordered by forum, then by date of initial submission.
So, first I made a little bookmarklet that would move all the ones with subscriptions to the top of the page. But I figured I could do more than that.
So, I put together a simple Chrome extension:
https://github.com/c...land/DIC-Chrome



So, functionally, all it does is check your subscriptions on an interval and on demand to determine if anyone has posted to any threads you've subscribed to. When you click on a link, it'll open in a new tab, and if you click "open all", it'll open all unread links in new tabs.
It's not using any API, just making an ajax request to get the page, then jQuery to find img elements that have an src of the unread image (or any image with unread in the path, actually). For UI elements, I'm using Bootstrap. I started with the ability to add a config page, but didn't get around to that part.
So, I guess here's the challenge: help make it better. Clone the repo, and add whatever features you think might be an improvement. I'm not married to the current design or architecture, so go ahead and change literally whatever you want, or start from scratch and make it new if it the two conflict.
If you've never worked on a Chrome Extension, you may wonder why I'm posting this here. Well, Chrome Extensions are just Javascript, HTML, and CSS. They can either be content scripts that are injected into pages, or they can run in "background pages". This is one of the latter. You gain access to a chrome object that allows you functionality not available to you outside of extensions, like tab management and such. You can also perform cross site queries with the proper permissions. If you've never done any extension work but would be interested in it, here's a great guide:
http://developer.chr...getstarted.html
That link also included instructions to load an extension that hasn't been packaged up as a .crx file, which of course this hasn't.
Have fun, and hope to see some participation!
Three notes:
1) This is not an official DIC product. I've cleared it with the admins, but this isn't going to be owned or supported by D.I.C. the company
2) I'm no Javascript expert, so I have no ego here. Criticize away; it'll only make me better at what I do.
3) I'm also not a git expert. So far, all I've used it to do is synchronize my own work between computers. I'll try to deal with pull requests, but I'm new to this, so I'll have to learn as I go.

New Topic/Question
Reply



MultiQuote





|