« LfVr shows all tags | Main | GMiF and Toggle comments scripts updated »

[Ajax] Hacking Rojo - Adding bits to feeds in Rojo

Tags: Ajax , Greasemonkey , Rojo

Rojo - Feed Profile

Rojo is lacking of some designs of user friendly. Why am I saying that? Sometimes we need to make an unnecessary click to get some basic but useful information of a feed. While reading stories of a feed, we probably want to take a look at the profile of it, or we also need to link to its original site. Furthermore, we would like to know the number of subscribers, unsubscribe, or rename the feed. All the stuff is in the profile of the feed, and need a click to get it.


The worse is still the slow response of Rojo. Loading a new page requires not only to fetch from server, but also needs extra time for browsers to render it. Now the script rojo.ajax.user.js v1.3 adds some bits to it. It fetches the profile of the feed in background, then displays a toggle below the title of feed. Click the toggle will show the information on the feed in Ajax way.

Download: AJAX Wrapper for Rojo v1.3 rojo.ajax.user.js

Technically, this is not an Ajax. I didn't fetch XML data from Rojo server. The data structure I can exploit in the HTML pages of Rojo is not much. Rojo didn't release API like Flickr or Google Maps, the only way to hack Rojo is to dive into its scripts. But this time I use an ugly way to reach my goal. I actually don't need XML, so I get the HTML page by calling XMLHttpRequest instead of XML data. I only need to parse the HTML text to get the piece of code about the profile and insert into current DOM tree.

Previous articles:
[Ajax] Hacking Rojo - Ajaxize more of 'Mark as Read'
[Ajax] Hacking Rojo - Ajaxize 'Mark as Read' function
[Ajax] Hacking Rojo - Slow Response of Rojo
[Ajax] Hacking Rojo - an Ajax Wrapper for Rojo
[Ajax] Hacking Rojo - Rojo is not Ajax?

TrackBack

Listed below are links to weblogs that reference [Ajax] Hacking Rojo - Adding bits to feeds in Rojo:

» [Ajax] Hacking Rojo - Quick unsubscribe feeds in Rojo from Yuan.CC Web Experiments
In Rojo, you can unsubscribe feeds only within two pages, the page of managing your feed list or the one of viewing the feed profile. Now the rojo.ajax.user.js script injects quick links to let you unsubscribe feeds any time.... [Read More]

» [Ajax] Hacking Rojo - Clearance of All Additions from Yuan.CC Web Experiments
I have been adding some additions to Rojo and keeping this script updated with Rojo. Lately, Rojo slightly changed its HTML layout, so some features of the script failed. I also fixed the compatible problem with Firefox 1.5RC3. Following... [Read More]

Comments

yes.this is my site http://pedikvkepke.otbet.ru/ultracet/canine_ultracet.html Thanks.

Post a comment