Now that I have managed to get the hideelements to hide all my desired elements, I would like to make a global template that executes this dekiscript for every page

    if (user.anonymous){
I created a "HideAll" template and called it from the User:Admin/Header page

Then I added the following line to my LocalSettings.php

$wgPreloadPages = array('User:Admin/Header');

Nothing seems to happen.

My thoughts on what could be wrong
1.  Do I need to put something in the $wgTargetSkinVars[] variable?
2.  Could my multi-tenant setup means this should go someplace other than LocalSettings.php?
3.  Because my script does not display something in a custom HTML area, is it being ignored?

To view responses click here: