{ "name": "TemplateStylesExtender", "version": "1.1.8", "author": [ "[https://www.mediawiki.org/wiki/User:Octfx Octfx]" ], "url": "https://github.com/octfx/mediawiki-extensions-TemplateStylesExtender", "descriptionmsg": "ext-templatestylesextender-desc", "license-name": "GPL-2.0-or-later", "type": "parserhook", "requires": { "MediaWiki": ">= 1.39.0", "platform": { "php": ">=7.3.19" }, "extensions": { "TemplateStyles": ">= 1.0" } }, "config": { "TemplateStylesExtenderEnablePrefersColorScheme": { "description": "Enable the prefers-color-scheme media query. WARNING this can break things if TemplateStyles was updated upstream", "value": true }, "TemplateStylesExtenderEnableCssVars": { "description": "Enable the matcher for css variables", "value": true }, "TemplateStylesExtenderEnableUnscopingSupport": { "description": "Allow to unscope css by changing '.mw-parser-output' to a custom class", "value": false }, "TemplateStylesExtenderUnscopingPermission": { "description": "Speficy the permission a user must have to use unscoping. Defaults to 'editinterface'.", "value": "editinterface" } }, "ConfigRegistry": { "TemplateStylesExtender": "GlobalVarConfig::newInstance" }, "MessagesDirs": { "TemplateStylesExtender": [ "i18n" ] }, "AutoloadNamespaces": { "MediaWiki\\Extension\\TemplateStylesExtender\\": "includes/" }, "HookHandlers": { "MainHooks": { "class": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\MainHooks" } }, "Hooks": { "TemplateStylesPropertySanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\PropertySanitizerHook::onSanitize", "TemplateStylesStylesheetSanitizer": "MediaWiki\\Extension\\TemplateStylesExtender\\Hooks\\StylesheetSanitizerHook::onSanitize", "ParserFirstCallInit": "MainHooks", "EditPage::attemptSave": "MainHooks" }, "manifest_version": 2 }