Changelog
1.0.1
Fixes a bug where the page type was not being logged correctly after navigation (the pageType variable was referenced before it was declared, causing a ReferenceError in strict mode). Also processes the current page's URL on initial script load, so ticket and filter pages are handled immediately without needing to navigate first.
1.0.0
Uses the Navigation API to detect page navigation in Zendesk, logs the detected page type (ticket, filter, or other) to the console, and registers a tightly-scoped MutationObserver for ticket and filter pages that fires once when the page is fully loaded then disconnects itself.