Writing Javascript bookmarklets is not the most enjoyable thing in the world. They're cool once they work, but before that it can be pretty painful to try and test them. So since I had to write another one the other day, I decided to fix that as best I could. With a little PHP magic I made a page where you can write/edit bookmarklets, and it does all the conversions required to spit out an ugly one-line bookmarklet.
It doesn't actually do all that much, but I found it incredibly convenient so maybe you will as well. You can try it out here, and if you want to run your own then help yourself to the PHP source.
It uses a cookie to store the last script you generated, so if you accidentally crash the browser when testing a script you can just go back to the page and you won't have lost your script.





0 Comments: