I'm trying to design some bookmarklets right now, that connect back to a server (say like magnolia), but by their very nature bookmarklets seem to fly in the face of what's established as internet security, and they are basically cross-site scripting by definition, however they are also powerful and cool tools, and fit the need of my requirements so I want to use them.
However since they are perhaps the ugly-ducklings of Javascript usage, I'm wondering what would be some special considerations and common sense that should be applied in respect to their design and security.
Thanks!
Edit: One policy I have is that the bookmarklet simply will not start if the user is within an https page.