I work with the CMS MediaWiki which includes numerous features that some I want to prevent from being parsed in all webpages that would otherwise include them.
Some such features (such as minor built-in menu links) I am good to prevent with CSS or JavaScript, but some others not and that's my problem:
As a user can cancel CSS and/or JS, that user might eventually use the "prevented" feature.
A good practical example to my problem is my desire to prevent parsing of edit summary boxes which I found causing more harm than good in too many MediaWiki based communities.
As I am not a PHP programmer and I don't want to study and edit the massive source code of MediaWiki CMS from scratch (and make exceptions for automatic upgrades and so forth), I prefer an indirect ("tweak") solution:
MediaWiki has the LocalSettings.php
file in which one can run custom PHP.
I desire to run some PHP function that, by some criterion (CSS class maybe), will prevent the parsing of elements that are parsed earlier such as the edit summary box.
If this is even possible with the current release of PHP and if so, how could this be done?