[Greasemonkey] Split a table's TRs into two?
Matt Sargent
matt.sargent at earthlink.net
Wed May 3 17:23:41 EDT 2006
You might look at this script
http://gmscripts.locusprime.net/Gallery.html
It, among other things, rewrites the table of a 4-up picture gallery to a 2-up
format. The actual rewriting of the table just takes 10 lines of code.
On 3 May 2006 at 13:31, bounce at johnhorner.nu wrote:
> I have to use an interface with lots of sideways scrolling. This is
> because the content's in a table and the table has lots of long,
> unsplittable content in the cells.
>
> Is it going to be feasible in GM to rewrite the table entirely so that
> every entry is on two rows? In other words, ignoring header problems,
> is it feasible to take this table
>
> |foo1|bar1|baz1|bax1|
> |foo2|bar2|baz2|bax2|
>
> and change it to:
>
> |foo1|bar1|
> |baz1|bax1|
> |foo2|bar2|
> |baz2|bax2|
>
> using GM? Any pointers, script examples? TIA.
>
> BTW, there are an even number of cells in each row.
>
>
>
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
More information about the Greasemonkey
mailing list