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]
[ticket-url]
Example:
HubSpot: 377059183 - Jane Smith - Product feed issue
https://app-eu1.hubspot.com/contacts/6252589/record/0-5/377059183
The URL is the tab's address at the moment of extraction, so it works for Pureservice, HubSpot ticket records and HubSpot Helpdesk alike.
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