| 
View
 

Collapse All GreaseMonkey script

Page history last edited by Christian Heilmann 16 years, 2 months ago

During his talk Phil Teare was asking for a way to collapse parts of a page, much like an IDE allows you to collapse code.

 

 

I've written a GreaseMonkey script that allows you to do that. You can install it by clicking the following link: icant.co.uk/sandbox/collapse_all.user.js

 

The script goes throug all lists, divs, paragraphs, table rows and tables and checks if they are larger than 100 pixels and smaller than a 1000 pixels either in width or height. If they are it creates a link to collapse the section and expand it.

 

Following is the BBC backstage blog with the script enabled:

 

 

Clicking any of the minuses will collapse the section and turn the minus into a plus and vice versa.

 

cheers

Chris

 

 

 

Comments (0)

You don't have permission to comment on this page.