This code is based on Allan Jardine's Visual Event 2 (webpage, github). It has been stripped to provide just the functionality of loading external libraries (that is js, css and image files).
Try the demo on http://krzysztofmadejski.github.io/InjectJsLib
- In your library implement interface as in SomeLib.js.template
- Modify values in the demo above to point to your library
- Copy generated bookmarklet link and include it on your site
Any idea how this library can be extended? Post an issue.