Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-02 Thread Conrad Shultz
You should be able to listen, at the application level, for a beforeNavigate event and then effectively modify the URL by canceling the navigation with preventDefault() and triggering a new load using your rewritten URL. See also

Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-02 Thread Rick Mann
Hmm I'll try that. > On Jan 2, 2016, at 15:46 , Conrad Shultz wrote: > > You should be able to listen, at the application level, for a beforeNavigate > event and then effectively modify the URL by canceling the navigation with > preventDefault() and triggering a new

Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-02 Thread Conrad Shultz
> On Dec 22, 2015, at 3:51 PM, Rick Mann wrote: > > You know how you can click links in email, and heck, to open them in Safari > (or whatever browser)? Is there any way to write an extension of some sort > that can intercept this and re-write the URL? I tried to write

Re: Any way to intercept the URL-opening mechanism on OS X?

2016-01-02 Thread Rick Mann
That was my first attempt, and it provides no way to modify the main url. Sent from my iPhone > On Jan 2, 2016, at 15:04, Conrad Shultz wrote: > > >> On Dec 22, 2015, at 3:51 PM, Rick Mann wrote: >> >> You know how you can click links in