the reader does support jquery (it's builtin). But there's no easy way to add plugins, short of editing the source code.
the reader doesn't store an id for paragraphs, instead the reference number is calculated each time it's needed. That javascript to do this is in the resources/viewer directory of the calibre install.
You can just add any javascript you want to these files to make it avaialble to the viewer.
|