unBlogged

Click here, click there, click everywhere

Subscribe to RSS feed

Posts tagged with "javascript"

Raggregator - my first widget

, , , ...

Hello!

Even if I am not a ((very) big) fan of the whole widgets idea, I saw the usefulness in using them for various quick info. Such as weather and news aggregation.

There are too many per-site widgets, and weather widgets.

The new Widgets competition organized by Opera motivated me to make this widget smile - who wouldn't want that PC? Therefore, I present you the Raggregator version 1 bigsmile.

Features:

- support for RSS 2.0 and Atom 1 feeds.
I don't currently have support for all the 9 incompatible RSS versions.
- unlimited number of feeds.
- minimize any feed you want.
- few settings can be changed in the widget (if you edit js/settings.js): number of maximum entries per feed, entry summary length, default feeds, and scroll speed.
- easy internationalization. *All* strings are in js/messages.js. Any new translations will be gladly posted. I won't currently add the Romanian translation, I want to first finish the second version of the widget.

I have many new features planned for the second version:

- better support for more feed versions and formats (maybe not only RSS/Atom).
- the ability to show detailed information for each entry and each feed (beyond the "what's new at a glance"). Something like a ... full-featured feed aggregator: satisfying all my news feed aggregation needs.
- the "minimal mode" which will act like a news ticker (scrolling the title of the feed entries).
- per-feed settings: auto-update interval, number of entries to show, hide visited entries, hide in news ticker.
- maybe grouped entries, acting similar to Planet Planet. This would allow the user to make a single group in which they can add as many feeds as they want. All the feed entries would then be sorted by date, showing *all* of them as one. This is something I'd prefer in many cases.
- maybe title editing for each group, for each feed, so you can change the title provided by the author of the feed.
- some display settings, like show dates on/off, show summaries, colours, themes, font size, etc.
- the ability to reorder the feeds (move up/down).
- and more...

Based on the above ideas I want to have some really important structure changes. I want the widget to be *the* aggregator smile.

After finishing the second widget version ... I might make a site-version, not just a widget (something like the JavaScript RSS/Atom parser by TarquinWJ). I won't keep it Opera-only, *but* I won't do *any* compatibility-related changes. I'll just stick to the web standards (if Firefox doesn't support them, sorry). Internet Explorer is, without doubt, out of the discussion.

Have fun using the current version. I hope I'll have to make the second version smile - the above ain't guaranteed p.



Download the file: raggregator.zip

I have submitted the widget to the competition today, in the very last minutes. Yes, I've been very busy: I worked on this widget only in the last couple of days.

The experience of making the widget was really interesting. Too bad there's no support for alert, confirm and prompt within widgets. I also found a bug: crash when using mouse gestures (in the latest weekly build). The bug seems to affect any widget and any page. One another, more serious, annoyance is in widgets you can't use the title attribute for any element to show a nice tooltip. Do we have to write our own tooltip scripts for anything simple?

Good luck to all participants in the competition.

P.S. All coding is done only by me. All design is done only by my twin brother.


Update (2006/05/03): To err is human. I was claiming this widget has support for Atom 2 feeds. There's no Atom 2. There's only Atom 1. Sorry guys. I don't know how I made this mistake, because I always knew there's only Atom 1 smile.

I found out about this mistake only now because M. David Peterson from atom-syntax mailing list published a message asking Opera staff to fix the description of my widget.

I have contacted Gautam Chandna (from My Opera staff) and he has fixed the description (the widget file is OK, no need for updating).

For those wondering if I won the competition: no, I didn't.

JavaScript console comparison

, , , ...

Hello!

I was working today on some site. I made a mistake in the JavaScript. I was looking into the code source in an entirely wrong place, trying to fix it. That's thanks to Firefox smile. Opera provided really helpful error message. Take a look at the screenshot, if you don't believe me. Tell me which browser helps you fix your code?



In the screenshot you'll see the JavaScript console from FF 1.5 and the one from Opera 9 TP 2.

UserJS: ROBO Sticky 1.0

, , , ...

Hello!
Today I've finished my first UserJS for Opera 8+.

I named it ROBO Sticky (no good inspiration for a better name). To download, install and learn more about it, visit it's "oficial" page.

The script is based on "Sticky-notes" by Antonio Orlando.

I simply didn't like his source code smile.

It adds a lot of "noise" in the DOM and I don't wonder why some people already reported it breaks Gmail.

My UserJS is almost an entire rewrite only for Opera, but it can be made to work on FF. Along the way I've made a lot of improvements, too many to list (bug fixes and nice behaviour improvements).

My JavaScript console

, , , ...

Hello!

I took the time to tinker with one of the files that comes with Opera: jsconsole.html.

First thing I did not like with the JS console from Tools > Advanced is the window itself smile. I don't like my task bar cluttered and there's no way to 'move' that window inside the Opera window as a tab (like you can do with the Voice log window).

This problem can easily be fixed if I just open the file as a normal page.

Changes from original JS console file:
  • added a Reset button;
  • added a Pause/Resume button (sometimes I'm not interested of seeing 'real-time' all errors);
  • added time stamp for the errors (based on Andrew Gregory's JS console panel)
  • repeated errors detection

What's different from other JS consoles: detection of repeated errors. There are some sites with scripts that run over and over, if these contain errors, then the JS console can get overloaded. What I did is just output: repeated error #N with a link to the error.

Get the JavaScript console file.

To 'install' the JS console just save the file somewhere on your HDD and open it, then bookmark it. I also used a nickname for fast access (via Shift+F2).

Suggestions/ideas for improvements always welcome.