Hide nonsensical Scratchpad menus when editing user scripts.

Fixes #1771