Detecting if wiki is loaded via a file or web protocol

For some toys and useful discussion from folks who have leveraged this difference with css etc., see this thread on TiddlyTweaks readOnly solution: Simple solution for an online read-only TW