Remove underline in TOC links

Hello,
The XWiki version in my company has recently been updated. Now all the links are underlined, including those in the table of contents (toc macro). We (my group in the company) only admin one of the spaces + its nested subspaces/pages (not the entire xwiki). How do I remove the underlines from the toc?

I read this topic. So:

  1. setting it in the user profile page
    → is not what I’m looking for
  2. set it in the space preference in the XWiki.XWikiPreferences xobject of the current space, or parent spaces
    → I don’t have it in our space. Obviously, parent spaces of our space are inaccessible for us.
  3. set it in the wiki preferences in the XWiki.XWikiPreferences xobject of the XWiki.XWikiPreferences page of the current wiki
    → same as above
  4. set it in the xwiki.properties configuration file, which is not recommended.
    → cannot access anything higher in hierarchy than our space, let alone the whole xwiki config file.

What are my options here?

Thank you.

I have something similar on my wishlist, but I haven’t tried it yet. My plan was to create a UIX macro using XWiki.UIExtensionClass that loads a XWiki.StyleSheetExtension just for a certain space and its child pages.

XWiki.UIExtensionClass
Something like:

#set ($space = "MySpace")
#if ($doc.fullName.startsWith($space))
  $xwiki.ssx.use("MySpace.MyStyleSheet")
#end

StyleSheetExtension
Something like:

a:link,
a:active,
a:visited {
    text-decoration: none !important;
}

Could that work?

Works like a charm! Thank you!