mediawiki-extensions-Templa.../extension.json
Coren 29bdd0c18e Add property filtering
Properties listed in $wgTemplateStylesPropertyBlacklist, or
those that contain function-like values not listed in
$wgTemplateStylesFunctionWhitelist cause the containing
declaration to be omitted from rendering entirely.

Additionally, rule selectors are unconditionally prepended
with '#mw-content-text' so that they cannot be applied to
UI elements outside the actual page content.

Change-Id: Id3d7dff465363d0163e4a5a1f31e770b4b0a67e2
2016-04-21 05:16:06 +00:00

63 lines
1.2 KiB
JSON

{
"name": "TemplateStyles",
"version": "0.9",
"author": [
"Marc A. Pelletier"
],
"url": "https://www.mediawiki.org/wiki/Extension:TemplateStyles",
"namemsg": "templatestyles",
"descriptionmsg": "templatestyles-desc",
"license-name": "LGPL-2.0+",
"type": "other",
"manifest_version": 1,
"MessageDirs": {
"TemplateStyles": [
"i18n"
]
},
"AutoloadClasses": {
"TemplateStylesHooks": "TemplateStyles.hooks.php",
"CSSParser": "CSSParser.php",
"CSSRenderer": "CSSRenderer.php"
},
"ext.templateStyles": {
"scripts": [
],
"styles": [
],
"messages": [
],
"dependencies": [
]
},
"Hooks": {
"ParserFirstCallInit": [
"TemplateStylesHooks::onParserFirstCallInit"
],
"OutputPageParserOutput": [
"TemplateStylesHooks::onOutputPageParserOutput"
],
"UnitTestsList": [
"TemplateStylesHooks::onUnitTestsList"
]
},
"config": {
"TemplateStylesNamespaces": {
"10": true
},
"TemplateStylesFunctionWhitelist": {
"rgb": true
},
"TemplateStylesPropertyBlacklist": {
"url": true,
"behavior": true,
"-moz-binding": true,
"-o-link": true
}
},
"ConfigRegistry": {
"TemplateStyles": "TemplateStylesHooks::makeConfig"
}
}