TDX opens a new window whenever a ticket, user or similar record is clicked. This script, paired with Stay for Safari, blocks the new window and renders the content inside the current window in a modal container.
It overrides openWin so that content is displayed in a modal overlay, and it removes openWinHref onclick attributes dynamically. It runs in Safari through the Stay for Safari extension.
How to install script.js on Safari using Stay for Safari
Prerequisites
macOS with Safari installed
Stay for Safari extension installed from the App Store