top | item 23338171 (no title) askz | 5 years ago I actually have this one :javascript:(function () { document.designMode == 'on' ? document.designMode = 'off' : document.designMode = 'on';})() discuss order hn newest chrismorgan|5 years ago Just so you know, the immediately-invoked function expression (IIFE) syntax is unnecessary here. This would do: javascript:document.designMode=document.designMode=='on'?'off':'on' hyldmo|5 years ago Doesn't seem to work in chrome. Clicking it just sends you to a page that says "on" load replies (1)
chrismorgan|5 years ago Just so you know, the immediately-invoked function expression (IIFE) syntax is unnecessary here. This would do: javascript:document.designMode=document.designMode=='on'?'off':'on' hyldmo|5 years ago Doesn't seem to work in chrome. Clicking it just sends you to a page that says "on" load replies (1)
hyldmo|5 years ago Doesn't seem to work in chrome. Clicking it just sends you to a page that says "on" load replies (1)
chrismorgan|5 years ago
hyldmo|5 years ago