I have a LAMP (CentOS) "shared" server environment on which I can't control Apache webserver fully but partially through
I can SSH that environment and use Bash in my user partition.
On that environment I have a MediaWiki website.
MediaWiki core includes some features I would like to disable but doesn't allow the option to do so (for example, one cannot disable edit summary boxes or footer links).
As I am not a PHP programmer and don't want to change the massive core PHP, I thought to prevent such features from being parsed to client, somehow.
I thought to prevent the parsing of such features while PHP document still gets executed in a similar scenario: Some PHP function gets called before any PHP line or routine gets executed (for processing markup);
Then, by some criterion (CSS class maybe), that function filters out that line or routine from being executed, thus the HTML structure that would otherwise be parsed by it, won't be parsed
But PHP 7.3.11 doesn't have such a function.
Is there any tweak to prevent parsing of to-be-parsed HTML elements with Bash?