I want to trap request for a my protocol from Firefox extension. For example if we type <my-protocol name>://... in address bar It should call a JavaScript function in an extension. I want to achieve it if possible without explicit settings.

share
up vote 3 down vote accepted
share

You can always see the code of my extension: http://talkweb.eu/openweb/1069 It's what you want:)

share
    
Superb man. Is there anyway to do this with mime type detection? Like this question here: Intercept/handle mime type/file – Blagoh Jul 23 '14 at 17:12
    
Idk what you mean: you add the handler and it's there, no? – flying sheep Jul 24 '14 at 1:58

if you’re going with the addon SDK, take a look at this: https://github.com/Gozala/jetpack-protocol

share
    
Superb man. Is there anyway to do this with mime type detection? Like this question here: Intercept/handle mime type/file – Blagoh Jul 23 '14 at 17:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.