Also while you can chrome has JavaScript permissions page, Firefox doesn't. Which means you can't control it.
Matter of fact there was a long period of time before where Firefox browser would reenable the about:config JavaScript preference when you switch it off.