It used the Shortcuts app to essentially be a middle man between you and the distraction. So everyone I open Safari, it triggers the other app (the 5 second timer), then redirects me back to safari.