Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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'


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';})()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: