Skip to content

About

Table extractor plugin

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Table Extractor

A browser extension for Chrome and Firefox that extracts HTML table data from any webpage and displays it as formatted JSON in a floating panel.

Features

  • Extracts all <table> elements on the current page
  • Displays results in a draggable, resizable floating panel
  • Copy the extracted JSON to clipboard with one click
  • Toggle the panel by clicking the extension button again
  • Works on any webpage (not browser system pages)

Installation

Chrome

  1. Open chrome://extensions/ in your browser
  2. Enable Developer mode (top right toggle)
  3. Click Load unpacked and select the table-extractor-chrome folder

Firefox

  1. Open about:debugging#/runtime/this-firefox
  2. Click Load Temporary Add-on…
  3. Select any file inside the table-extractor-firefox folder

For permanent Firefox installation, the extension must be signed via addons.mozilla.org.

Usage

  1. Navigate to any page containing an HTML table
  2. Click the Table Extractor icon in the toolbar
  3. Click Extract Table in the popup
  4. A floating panel appears in the bottom-right corner with the extracted JSON
  5. Click Copy to copy the JSON to your clipboard
  6. Drag the panel header to reposition it; resize from the bottom-right corner
  7. Click ✕ or click the toolbar icon again to dismiss the panel

Output Format

Single table — returns an array of row objects:

[
  { "Name": "Alice", "Age": "30" },
  { "Name": "Bob",   "Age": "25" }
]

Multiple tables — returns an array of named table objects:

[
  { "table_1": [ { "Name": "Alice" } ] },
  { "table_2": [ { "Product": "Widget", "Price": "9.99" } ] }
]

Column keys are taken from the first row of each table (<th> or <td>). Columns without a header fall back to col0, col1, etc.

Project Structure

table-extractor/
├── table-extractor-chrome/
│   ├── manifest.json   # Manifest V3 (Chrome)
│   ├── popup.html      # Toolbar popup UI
│   ├── popup.js        # Injects content script on button click
│   ├── content.js      # Extracts tables and renders floating panel
│   └── icon.png
└── table-extractor-firefox/
    ├── manifest.json   # Manifest V2 (Firefox)
    ├── popup.html
    ├── popup.js
    ├── content.js
    └── icon.png

Permissions

Permission Reason
activeTab Read the DOM of the current tab
scripting Inject content.js into the page (Chrome)
tabs Query the active tab URL (Firefox)

No data is sent to any server. Everything runs locally in your browser.

Browser Compatibility

Browser Manifest Min Version
Chrome V3 88+
Firefox V2 142+

About

Table extractor plugin

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages