Skip to content

Instantly share code, notes, and snippets.

@drichardson
Last active August 11, 2025 18:03
Show Gist options
  • Save drichardson/bc13bbce5f023e594ea6aad95a79ba12 to your computer and use it in GitHub Desktop.
Save drichardson/bc13bbce5f023e594ea6aad95a79ba12 to your computer and use it in GitHub Desktop.
Zendesk Ticket to Atlas Bookmarklet

Installation

Create a new bookmark in your browser, then copy/paste the minified code below into the URL field.

To Update bookmarklet

Use Bookmarklet Maker to minify and URI encode the bookmarklet.

javascript:(function(){
// Get the current URL
const currentUrl = window.location.href;
// Check if we're on a Zendesk ticket page
const zendeskMatch = currentUrl.match(/whatnot\.zendesk\.com\/agent\/tickets\/(\d+)/);
if (zendeskMatch && zendeskMatch[1]) {
// Extract the ticket ID
const ticketId = zendeskMatch[1];
// Construct the admin2 URL
const admin2Url = `https://admin2.whatnot.com/apps/0a6f541c-5c13-11f0-9a11-13b23a510c77/Agent%20Tooling/Atlas%20-%20Ticket%20Resolver/page1?ticket_id=${ticketId}`;
// Open the admin2 URL in a new tab
window.open(admin2Url, '_blank');
} else {
alert('This bookmarklet only works on Whatnot Zendesk ticket pages.\nPlease navigate to a ticket page like:\nhttps://whatnot.zendesk.com/agent/tickets/[TICKET_ID]');
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment