How can I use a file on my computer as a bookmarklet?

I'm using Firefox 19.0.2 on Fedora 17. I've copied a javascript function onto my computer (and marked it as executable) and put it on my Smart Bookmark list as a bookmarklet. Alas, when I try to use it, all it does is open the file, displaying the contents in the browser window. How do I get it to work as it's supposed to?

↓ Show more ↑ Show less
  • All posts
  • Helpful Solutions
  • solution
  • owner