about:config
- In the address bar, type "about:config" (with no quotes), and press Enter.
- Click "I'll be careful, I promise"
- In the search bar, search for "javascript.enabled" (with no quotes).
- Right click the result named "javascript.enabled" and click "Toggle". JavaScript is now disabled.
https://support.mozilla.org/en-US/questions/967344