Thanks Jeremy that is exactly what i wanted. I just made a plugin tiddler 
with 
type: application/javascript
module-type: browser-startup 
and have it intercept external links with 

var shell = new ActiveXObject("WScript.Shell");

shell.run(externalLink.href);   


which seems to use whatever is set as the default browser. It silently 
fails and uses the default method if ActiveX is not available so is safe to 
use in browser versions too :)

The code is here: https://github.com/welford/htalink



On Sunday, 13 April 2014 17:29:49 UTC+9, Jeremy Ruston wrote:
>
> Hi James
>
> There's a similar problem in TiddlyDesktop, where we have to trap external 
> links within TW documents so that we can hand them off to the default 
> browser.
>
> The technique I use there is to attach a click event listener to the 
> document:
>
>
> https://github.com/Jermolene/TiddlyDesktop/blob/master/source/js/main.js#L231
>
> Would that technique work in your situation?
>
> Best wishes
>
> Jeremy
>
>
>
> On Sat, Apr 12, 2014 at 11:05 PM, James Anderson 
> <[email protected]<javascript:>
> > wrote:
>
>> I am trying to write a small customization to extlink.js so that i can 
>> override a TW running in HTA from opening external links in IE11. 
>>
>> "onclick": {type: "string", value: "..."},
>>
>>
>> I tried adding the above to attributes: alongside the href and class but 
>> it seems to be filtered out elsewhere. Does anyone know the correct ways of 
>> doing this?
>>
>> Thanks.
>>
>> James
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWikiDev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/tiddlywikidev.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to