I was looking for a way to get this great script to work with Firefox but it’s not possible.
Instead you can use the add-on Export Tabs URLs that takes all the browser tabs and creates a formatted list which then can be copy-pasted into TaskPaper.
With this custom format “- {title}\r\n {url}\r\n
” in the add-on settings you get the same result as with the script.