Chrome extension that extracts ticket information from support systems and copies it to clipboard.
- Pureservice - Ticket record view
- HubSpot - Ticket record view and Helpdesk Conversations
[System]: [ticket-id] - [contact-name] - [subject]
Examples:
Pureservice: 12345 - John Doe - Invoice requestHubSpot: 377059183 - Jane Smith - Product feed issue
Search for "Ticket Extractor" in the Chrome Web Store and click Install.
- Download or clone this repository
- Open
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Click Load unpacked and select this folder
- Navigate to a ticket in Pureservice or HubSpot
- Click the extension icon
- Click "Extract & Copy Text"
- Formatted text is copied to clipboard
The extension uses chrome.scripting.executeScript to inject a function into the active tab. It detects the system from the URL, waits for DOM elements to render (using MutationObserver), and extracts ticket ID, contact name and subject using system-specific selectors.
HubSpot has two distinct views with different DOM structures:
- Ticket record (
/record/...) - Contact name from sidebar chicklet, subject from property panel, ticket ID from URL - Helpdesk Conversations (
/help-desk/...) - All fields from the header bar, ticket ID from URL
To add support for a new ticketing system:
- Add an entry to the
SYSTEMSobject inpopup.jswith selectors and extractor functions - Add the domain to
SUPPORTED_DOMAINS - Update
detectSystem()andgetSystemLabel() - Add the domain to
host_permissionsinmanifest.json
Created by Morten Mouritzen