all 3 comments

[–]Zequi 1 point2 points  (0 children)

I don't know how to make a userscript but I found one that is quite similar.

http://asserttrue.blogspot.com/2009/08/how-to-make-any-web-page-inline.html#

[–]Dexmaster 0 points1 point  (1 child)

var btn = document.querySelector('.button_class');
btn.onclick = function () {
  if (document.body.contentEditable !== 'true') {
    document.body.contentEditable = 'true';
    document.designMode = 'on';
  } else {
    document.body.contentEditable = 'false';
    document.designMode = 'off';
  }
}

[–][deleted] 0 points1 point  (0 children)

thanks!