Topic on Skin talk:Minerva Neue/Flow

The Discoverer (talkcontribs)

How can a userscript append an icon to the page header / title in Minerva? This excerpt from a gadget works for Vector but not for Minerva:


if ( currentSkin === "vector" || currentSkin === "vector-2022" || currentSkin === "minerva" ){

$( '#firstHeading' ).append( icon );

}

The Discoverer (talkcontribs)

@Jdlrobson, would you be able to help with this?

Jdlrobson (talkcontribs)

That code works for me on Minerva. You can also use `.mw-first-heading`. What exactly is the issue you are experiencing?

The Discoverer (talkcontribs)
Jdlrobson (talkcontribs)

Gadgets do not load on mobile by default. this should fix it.

Note, I'm trying to change the default, so this is less confusing so your voice on phab:T328610 would be appreciated.

The Discoverer (talkcontribs)

Thanks a lot for your help with this, @Jdlrobson. Is it that gadgets used to load on mobile in the past by default? Because I think maybe this gadget used to work in Minerva in the past.

Regarding the Phabricator task, after reading through the task, I am confused about the entire issue, and if you don't mind, I would like to sit this one out.

Thanks once again!

Jdlrobson (talkcontribs)

Nope, gadgets have never loaded on mobile unless explicitly enabled to do so.

Reply to "Append to header"