Force MediaWiki BetaFeatures on/off for everyone, everywhere & everytime.
By Mikael Korpela.
First install BetaFeatures
Clone this extension under extensions
:
git clone https://github.com/simison/BetaFeatureEverywhere.git
...or download the zip file.
Add to LocalSettings.php
require_once "$IP/extensions/BetaFeatureEverywhere/BetaFeatureEverywhere.php";
Turn features on or off using $wgDefaultUserOptions
variable at LocalSettings.php
:
$wgDefaultUserOptions['betafeatures-vector-typography-update'] = '0';
$wgDefaultUserOptions['betafeatures-vector-fixedheader'] = '1';
Set value to 1 to feature on and 0 off.
Extension also hides setting this feature from preferences.
If you don't list feature here, it will work just normally (as opt-in).
For VectorBeta you must also enable features first using $wgVectorBetaTypography
, $wgVectorBetaPersonalBar
and $wgVectorBetaWinter
flags (set them true
).
- betafeatures-vector-compact-personal-bar
- betafeatures-vector-typography-update
- betafeatures-vector-fixedheader
- visualeditor-enable
- popups
You can extend this list by offering an array of features at LocalSettings.php
:
$wgBetaFeaturesEverywhere = array('betafeatures-my-own');
MIT