Thread:Extension talk:MobileFrontend/Don't let users edit in mobile only

In LocalSettings.php for desktop I do

function JidanniDontInviteEdit(&$article,&$outputDone){if($article->getID===0){ switch($article->getTitle->getNamespace){case NS_CATEGORY:case  NS_CATEGORY_TALK:$outputDone=true;}}return true;}

How can I do the same for mobile? I don't want users to edit categories on my special purpose site.

Or is there a way to make mobile totally readonly?