Do we have JS code that also checks secure mode before deleting, sharing or switching to gallery?  I know that we used to do that in 1.3 at least. I don't want the security of secure mode to rest entirely on hiding buttons with CSS.