I have a javascript: bookmarklet with the code 
javascript:document.body.contentEditable = !document.body.contentEditable; 
which should switch on and off an "editor" for the page (just for pranks on friends and such). But it does not acheive the desired outcome, nothing happens when I click the bookmark. Opening up the Javascript Console, I see that:
document.body.contentEditable
  "false"
!document.body.contentEditable
  false
Previously, I used javascript:document.body.contentEditable = true; and this makes the page editable but I cannot turn it off.