Re:Editmode: Make any website editable inline
by chrismorgan on Thursday May 28, 2020 @01:27PM
(#23339986)
Just so you know, the immediately-invoked function expression (IIFE) syntax is unnecessary here. This would do:
[ Parent
| on HN ]
Re:Editmode: Make any website editable inline
by hyldmo on Thursday May 28, 2020 @03:42PM
(#23341640)
Doesn't seem to work in chrome. Clicking it just sends you to a page that says "on"
This works for me in Chrome and Firefox, and is a bit shorter than the others (excluding your parent).
javascript:(function () {document.designMode=document.designMode=='on'?'off':'on';})()