Continuing the discussion from Disable TOR in TorBrowser 9:
Tor Browser in Whonix:
https://github.com/Whonix/anon-ws-disable-stacked-tor/blob/master/usr/lib/anon-ws-disable-stacked-tor/torbrowser.sh
SecBrowser:
https://github.com/Whonix/tb-starter/blob/master/usr/share/secbrowser/variables.bsh