Thread:Extension talk:Favorites/Split the tag output into namespaces/reply

It would take a bit of hacking, but the code you're looking for is in FavoritelistEditor.php in the buildRemoveList function. Specifically, I think it's these three lines:

$heading = htmlspecialchars( $this->getNamespaceHeading( $namespace ) ); $anchor = "editfavoritelist-ns". $namespace; $list .= $skin->makeHeadLine( 2, ">", $anchor, $heading, "" );

It may be as simple as putting those three lines into the buildRemoveList function in FavParser.php. However, this will cause it to display the namespace headings for every favorites list, not just the ones on the user page. If you only want it to work for user pages, you would probably want to break it out into a separate function or set some sort of variable at the class-level, and then you can add the extra layers you are looking for. It's all totally possible, it would just take a little effort to make it work. Let me know if you get stuck and I'll try to take a look when I get some time.