Hi I’m studying Python and I’ve started my first little project.
The first thing that I want to do is to add an item to the right click menu of Firefox. So, when I right-click a link that item will be available and when I click it some Python code will be called in order to “do something” with that URL.
Do I have to create a Firefox extension to do this? Can I specify in that extension the Python code that should be called?
Yes, you will need to write a Firefox extension. This is a getting-started tutorial. To call your external Python code you will use nsIProcess.
Why have you chosen to do this in Python? Since Firefox extensions do their thinking in JavaScript anyway, if you use that then you don’t have to call external processes. In particular, you won’t need to install Python for your extension to work!