I am writing greasemonkey user.js for a page with a table in it. (The table is 100 rows in 18 columns.) Now, what I want to do is make it sort by column, and also run it in both Chrome and Firefox.
All searches for answers so far have led to suggestions to use jquery / dojo or something similar.
Is it possible to do without external code? Ofter all this is just a matter of replacing the string in a different order, right? or is it a stupid thing to say?
The fact is that I already use dojo for some queries, but since I want it to run in both Firefox and Chrome, I just copied the whole dojo thing into my script ..
In addition, most of the solutions I have found so far seem to be more suitable for creating a table, rather than modifying an existing one.
Any help is appreciated.
EDIT: all cells in the table contain numbers.
source
share