Dave199
Dave199

Reputation: 21

How to auto run Firefox .xpi extension on webpage load

Hi i have this firefox addon i would like it to automatically popup with download when a user loads the page.

Upvotes: 0

Views: 428

Answers (1)

lorenzo-s
lorenzo-s

Reputation: 17010

Can't you just redirect the user using javascript to the .xpi file?

At the end of your page, just before the </body> tag, put this:

<script type="text/javascript">
    window.location.href = 'path/to/your.xpi';
</script>

Upvotes: 1

Related Questions