·1 yr. ago
I tried to preserve a lot of html, I forgot now what exactly I remove. Submitting forms is disabled for example. All resources like CSS are loaded via buboflash.eu server, so the browser does not complain about cross site references.
Of course when you use Chrome Extension, I do not change the original html, and nothing is disabled, you can submit forms etc, but I have another problem - the annotations popup from Buboflash inherits some of the underlying page styling, or worse, I can add inadvertently my styling to the original page, but I did not see it happen in practice. Not ideal, I will fix that one day with iframe.
Pages are always cached in buboflash.eu, so search by text works with them.
The highlighted part is just <span ...> with colour, and it is matched approximately against the whole page text, not by letter position for example. A lot can change in the underlying page, like paragraphs added before or after the annotation and it w