Jump to content

User:Terasail/HeaderTextLinks

From Wikipedia, the free encyclopedia
User script
HeaderTextLinks
DescriptionAdds dropdown menu text links to the header (static & sticky) how vector legacy used to show user links
Author(s)Terasail
StatusWorking
First releasedFebruary 25, 2023; 21 months ago (2023-02-25)
UpdatedAugust 1, 2023
    (15 months ago)
Skins
  • Only Vector (2022)
SourceUser:Terasail/HeaderTextLinks.js

This userscript adds the text links (no icons) from the vector user menu dropdown to the header and sticky header so that the user menu doesn't need to be opened to use the buttons. These links resemble what was previously available in the topbar in vector legacy.

It is ideal for lage width screens where the header appears empty and you often need to open the dropdown menu, or if you wish to replicate the style of user links available through vector legacy.

How to use

[edit]

Local (English wiki)

[edit]

To use this script on english wiki, add the following to your common.js page:

importScript('User:Terasail/HeaderTextLinks.js'); // [[User:Terasail/HeaderTextLinks]]

Global (All wikis)

[edit]

To use this script on all wikis (Commons, Meta, Mediawiki...), add the following to your global.js page:

mw.loader.load("https://en.wikipedia.org/w/index.php?action=raw&title=User:Terasail/HeaderTextLinks.js&ctype=text/javascript"); // [[:en:User:Terasail/HeaderTextLinks]]

See also

[edit]

User:Terasail/HeaderIcons – The same however it will display the icons rather than the text link.

Questions / Issues

[edit]

Please leave any questions or issues on my talk page, Thanks.