WebSlices in Firefox, who wants to try ?-)
By glazou on Monday 10 March 2008, 15:33 - Mozilla - Permalink
After precisely 10 hours of work, I am glad to offer you a first look at my Webchunks extension (3.0a1 <= firefox <= 3.0b5pre).
- install the extension, relaunch firefox, notice the new toolbar
- visit a site using feed-based webslices like Ebay at http://ie8.ebay.com
- go the bottom right of the page and search for uuuh.... welll... something
- hover over the results, you'll notice a blue icon appearing on the left hand side of an entry ; when such an icon is visible, you have a specific context menu entry to subscribe to the webslice ; do it !
- a new entry appeared in the toolbar, if you click on it, you'll see the webslice...
- Webslices can be a chunk of page identified by a specific class, or the contents of the first item of an RSS feed ; this extension implements only the latter for the time being. The former is not a problem at all, I just started with the latter, period.
- clicking on a link in the webslice opens a new window, not a new tab
- submitting a form in a webslice probably does not work yet
- no context menu on the toolbar entries for the moment
- no tweaking of the entry's name for the moment
- uses mozStorage and templates
- some MPL code reused from the places code
- the rest is "(c) Disruptive Innovations SARL 2008 All rights reserved" for the time being ; free for personal use only
Enjoy... Comments allowed on this post.

Comments
It works well. But the context menu, is not as easy as the original webslice button.
I haven't seen the ie8 version, but a usability suggestion:
delay the disappear of the purple icon after mouse-out, and allow people to click on it (the purple). I spent a bit of time, before I read through your instructions trying to 'chase' the icon.
it would also be nice to integrate this into bookmarks--so overlay a sub item for feeds there to get more info.
The source code published somewhere? I'd love to see how you used the storage code.
Pretty slick... I'm with sky, though.. it would be great if the icon was clickable and automatically added the item for you. I think Office built that idea into our brains with the popup icons
Hey guys, it's a 0.1 and it's 10 hours of work only, be patient ok ?:-)
It's pretty nice ... although I don't actually get to see the Webslice -- I get an entry in the Webslices bar and all, but when I click on the icon, there's only grey chrome and the open / delete buttons. Hopefully that doesn't have anything to do with the fact that I'm so behind browser development -- I'm on Firefox 3 b3.
I wonder who, besides Ebay, will implement Webslices, actually. Providers of official support forums, maybe?
seems like its coming along well! one problem... even though I can subscribe to the webchunk..and the link shows up on my toolbar area... the chunk is blank..... so.... patient, i will be.
seems like its coming along well! one problem... even though I can subscribe to the webchunk..and the link shows up on my toolbar area... the chunk is blank..... so.... patient, i will be.
[FF3b3 on vista]
I'm not seeing the hover icon in Firefox 3b4. No error console errors. The context menu item works though.
Shawn: Extract the xpi with any zip utility. Or just look up the installed extension in your Firefox profile folder. Or use the jar: protocol trick to browse inside it with Firefox.
Aha... NoScript blocks the icon from appearing when it's blocking scripts on the current webpage's domain.
There must be some way to make your extension's icon exempt (maybe make it part of the browser window DOM instead of the page's?).
Thanks to this post, I installed FF3b4 and test webslices. Even if it's don't work (blank page) I undestand the idea, and wow, it's a pretty idea.
Same to Cédric, it don't work(blank page).
mmm. i can see the icon , but when i try to click on it, is gone!..i,m using Firefox 3b4 on mac
For the time you've have this is fantastic work
I noticed that for the icon to appear the element with the class="hslice" section has to be a visible element. If I wrap an existing div with a new div having the hslice class you don't pick up that the containing div has the hslice and thus don't show the icon or the right-click context menu item.
You're my hero, dude.
Cool!
Please post this on AMO (https://addons.mozilla.org).
No new toolbars please. webchunks should add to bookmarks toolbar.
Hi,
I just found a bug (not so sure).
I implemented webslice on my site: http://www.packagetrackr.com/tracki...
I can see the webslice icon when hover on the content but when right click 'Subscribe to a webckunk' doesn't in the menu list.
btw: IE 8 is working.