This script requires a browser add-on to be installed in advance. Tampermonkey is one of the add-ons capable of running scripts and it is available for all the major browsers: Chrome, Firefox, Brave, Opera, Safari and Microsoft Edge.
The script offers three features - both placed on top of the window, in the Mixer menu:
Please note that each tab will have its own settings, which by default are:
The script will check both settings each 0.5 seconds and act accordingly. Feel free to report issues and improvement suggestions to my eRepublik account: https://www.erepublik.com/en/citizen/profile/5981198