Select data in tables the same way you select cells in a spreadsheet.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



   Helps you select data in tables the same way you select cells in a


   o  [A JavaScript][1] you can install in your web page,

   o  [A bookmarklet][2] you can run on any page,

   o  A Greasemonkey [user script][3] and a [Chrome extension][4].

1.  Script

   There are two versions of the script, one that depends on jQuery
   and the other that doesn't:

   o  [jQuery version][1].

   o  [Non-jQuery version][3].

   The jQuery version supports more browsers, whereas the non-jQuery
   version adds less code to each page and is easier to distribute as
   a Chrome extension.  The non-jQuery version invokes web standards
   directly and supports Firefox and Chrome.  It works well as a
   bookmarklet or a user script where, once installed, cross-browser
   support isn't an issue.

   It's also available as a [a jQuery plugin].

2.  Bookmarklet

   Bookmark one of these two versions, or drag it to your bookmarks

   o  jQuery version: [Select tables][2]

   o  Non-jQuery version: [Select tables][5]

3.  Greasemonkey

   Here is [a user script][3] for [Greasemonkey][6] or Chrome.

   Install the Greasemonkey [Firefox extension][6], then [install the

   Chrome supports user scripts out of the box, but recent versions
   will [only allow you] to install them from [the Chrome Web
   Store][4] by default.

   You can also [get the script] from

4.  GitHub

   Fork me [on GitHub].

5.  Features

   o  Shift click to extend the selection.

   o  Double click to select rows, columns, or a whole table.

   Currently this is a [minimum product], hopefully it's viable.  No
   work has been done on interaction with colspans or rowspans, or
   interaction with nested tables.

   It doesn't work with PDF documents, but here is a [very cool
   project] that does.

   In future it might:

   o  Support using arrow keys to extend the selection, the way you
      might expect.

   o  Support control click to select irregular regions.

   o  Enable other scripts to add behavior when cells in specialized
      tables are selected.

6.  Why?

   [CRUD] webapps are frequently built for jobs that users previously
   addressed with spreadsheets.  Despite the advantages of webapps,
   venerable spreadsheets still deliver great features and user
   experience.  Hopefully this script improves integration between web
   pages and spreadsheets.  With it you should be able to scrape or
   export any table on the web.

   There are also a lot of other great tools to integrate spreadsheet
   features with webapps:

   o  [DataTables]

   o  [Handsontable]

   o  [jTable]

   o  [jqGrid]

   o  [jui_datagrid]

   o  [ParamQuery]

   o  [SlickGrid]

   o  [table2csv]

   And there is at least one Firefox extension to enhance tables on
   any web page: [TableTools2].  And Firefox lets you select tables
   out of the box, by holding down the control key.

   There are also web-based spreadsheets like [Google Spreadsheet] and

   Hopefully even more data will get shared in the form of tables.


   [2]         javascript:(function(){document.body.appendChild(document.createElement('script')).src='';document.body.appendChild(document.createElement('script')).src=''})()



   [a jQuery plugin]

   [5]         javascript:(function(){document.body.appendChild(document.createElement('script')).src=''})()


   [only allow you]

   [get the script]

   [on GitHub]

   [minimum product]

   [very cool project]











   [Google Spreadsheet]