Webchunks 0.12 : Webslices for any web site...
With Greasemonkey's invaluable help, I am now glad to let you add in-page webchunks to any web site... It's not absolutely trivial but it's not difficult if you know JS. You have to write a Greasemonkey script doing the following:
- adding the
hsliceclass to your webslice in the document - adding a dummy ID to that element if it has no ID at all
- adding the
entry-titleclass to the element that contains the title of your webslice or append one to your webslice if there's no title and you want to suggest a default one - adding the
entry-contentclass to all the sub-elements of your webslice you want to see appear in your popup
- install Webchunks v0.12 (Firefox >=3 required).
- install Greasemonkey if you don't already have it
- install the webchunks.css.com.user.js script for GM
- pay a little visit to http://edition.cnn.com and find the two webslices...
Changelog for v0.12:
- the icon is now displayed on the right side of the element in case of rtl direction
- the favicon was not always correctly detected and stored
- the width of the popup is now the width of the element in the page in case of an in-page webslice
- GM knowledge to let Webchunks call GM for the documents shown in a webchunk popup
- moved the buttons inside the popup from bottom to top of the popup in case the webslice is too high for the screen (if I try putting a scrollbar on the iframe, the rendering is weird : you can scroll the iframe but you have to make your mouse pointer leave the popup to see the iframe's content sync with the scrollbar's position...)
- if you toggle fullscreen on or off, the position of the floating icon is now changed if necessary
Update:

Comments
For some reason when I try to subscribe to a webchunk on CNN, I click Ok but it doesn't work...it is non-responsive...any suggestions?
@JB: please reload and reinstall the webchunks XPI, you probably got a bad version I uploaded by mistake ; sorry for that
Nope, still not working...shall I try a version before webchunks 0.12? I am using Firefox 3 Beta 4, could that be a problem?
@JB: bug found and fixed ; related to SQLite ; please reload XPI and thanks for the heads up !
Sweet, it is all working now...
Merci beaucoup Daniel!
J'aime ton "extension" beaucoup, je pense que c'est des choses comme ça qui redéfinissent le web et comment on l'utilise.
Merci encore!
Thanks Daniel, you've done an incredible work. I hope you will release it under an open source license in the future.
However I still don't see the benefits of webslices over rss/atom syndication. Am I outdated ?
After installing this version the slices have stopped working properly. The popup is way to small and the scrollbars appear but don't using them doesn't actually scroll the content area. I tried this on both the eBay and Stumble Upon sites.
I have a similar problem on le monde.fr : sometimes the box is not resized to fit the content.
Although the content is updated correctly, this is not the case for the title in the Webchunks toolbar. I have still the title of the paper which was online when I first used Webslice on lemonde.fr.
Shouldn't this work without Greasemonkey?
IE does this without :> .