Yanfly Engine Plugins is a plugin library made for RPG Maker MV, a wonderful piece of software to help you make that role playing game of your dreams. You can find out more about RPG Maker MV here.
You can grab the plugin here:
This plugin allows you to set switches that are either always enabled or always disabled based on a various conditions. These conditions are here to help enable easier access to determining the lesser frequently seen flags set by the game such as determining if the game is running via debug mode or on a certain type of browser.