Configure add-to-tranmission-daemon-action in firefox?

view full story

http://unix.stackexchange.com – How do I configure firefox such that a clicked bittorent link is automatically added to a transmission daemon that runs on a remote machine? The transmission daemon is available via ssh/transmission-remote-control port. I can easily instruct firefox to open a torrent file with a shell script of my choice but then firefox downloads the torrent file to /var/tmp and supplies the temporary file path to the script. This is not exactly what I want - I need firefox to just call the shell script and supply the (original) URL as parameter. Bonus points for a setup where firefox even gives feedback (HowTos)