Create a new bookmark in your browser, then copy/paste the minified code below into the URL field.
Use Bookmarklet Maker to minify and URI encode the bookmarklet.
Create a new bookmark in your browser, then copy/paste the minified code below into the URL field.
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]'); | |
| } | |
| })(); |