Skip to content

Force MediaWiki Beta features on/off for everyone.

Notifications You must be signed in to change notification settings

omelnyk/BetaFeatureEverywhere

Repository files navigation

BetaFeatureEverywhere extension for MediaWiki

Force MediaWiki BetaFeatures on/off for everyone, everywhere & everytime.

By Mikael Korpela.

Install

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).

Supported feature flags

You can extend this list by offering an array of features at LocalSettings.php:

$wgBetaFeaturesEverywhere = array('betafeatures-my-own');

License

MIT

About

Force MediaWiki Beta features on/off for everyone.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages