Extension overwrites note
To reproduce, follow these steps:
1.) Visit example.org/subsite and there create a note for that page. E.g. "note 1".
2.) Visit example.org/ and there create a site-wide note ("Apply to all pages of this site."). E.g. "note 2".
3.) Go back to example.org/subsite, open the note there, and change its scope to "Apply to all pages of this site."
Result:
Notice that the note created in step 2 ("note 2") has been overwritten with "note 1".
Solution:
As a quick fix, the extension could check, before it writes a note, if there is already a note. It then could act in some way that prevents the overwriting. A dirty but workable short term solution would be to join the two notes together separated by "[new line]---[new line]".
In the long term, the best idea I can come up with would be for the extension, if you click the icon, and if there is both a site-wide and a page-only note stored, to show both, each in its own text box.