With this code, create "next generation" bookmarklets.
The good points are that :
- the code is remotely loaded (so updatable and more simply testable)
- you have no length limitation
- you can dispatch the code in various libaries
baseurl = 'http://example.com/bookmarklet/';
var scripts = new Array(
baseurl + 'date.js',
baseurl + 'encoding.js',
baseurl + 'http.js',
baseurl + 'bookmarklet.js?x=' + Math.floor(Math.random() * 9999)
Past the code above in a bookmarklet crunchinator to generate the bookmarklet. http://ted.mielczarek.org/code/mozilla/bookmarklet.html
Not fully tested. It may have some issues.