To see if your code works I added a
alert("bookmarklet loaded"); in the end of the bookmarklet. So you can try and should - since I tested on FF17- see as a result a messagebox appear. If your code works or does not work I am unable to say, but of course this was not the question.
<script></script> tags easier to be adopted for a bookmarklet
edit (let's put in an example here)
Lets have an example. Lets have two a sourcecode with two instructions:
When put all in one line (= make the linebreak to whitespaces) you would first end up with this
var anumber=1 var atext="hallo"
var anumber=1; var atext="hallo"
- wrap all you code in kind of this kind of closure:
There are quite some websites out there to investigate the solution. Like here.
If the solution worked for you, please consider acception this answer as a solution ;)