# Create an extension that would intercept a link click

**URL:** <https://discourse.mozilla.org/t/create-an-extension-that-would-intercept-a-link-click/24224>\
**Category:** Development\
**Created:** [January 8, 2018, 8:43pm UTC](https://discourse.mozilla.org/t/create-an-extension-that-would-intercept-a-link-click/24224 "2018-01-08T20:43:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpoznecki](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mpoznecki](https://discourse.mozilla.org/u/mpoznecki)\
**Post date:** [January 8, 2018, 8:43pm UTC](https://discourse.mozilla.org/t/create-an-extension-that-would-intercept-a-link-click/24224/1 "2018-01-08T20:43:48Z")

</div>

Hi, I need to create an extension for firefox 45 that would allow me to intercept a link click so that I can launch a custom download manager. The only example I can find puts the javascript into the page. ([https://github.com/mdn/webextensions-examples/tree/master/notify-link-clicks-i18n](https://github.com/mdn/webextensions-examples/tree/master/notify-link-clicks-i18n))

Can someone help me figure out how to do this?
